From 57ba97fa04dadc6fd73db1904e39a09d57a4fcbe Mon Sep 17 00:00:00 2001 From: Jan Simson Date: Wed, 28 Aug 2024 10:21:17 +0200 Subject: [PATCH] Include `stat_binhex` aesthetics in documentation for `geom_hex` and `stat_binhex` (#6062) --- R/geom-hex.R | 1 + man/geom_hex.Rd | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/R/geom-hex.R b/R/geom-hex.R index 0eb777b808..6badb8f87a 100644 --- a/R/geom-hex.R +++ b/R/geom-hex.R @@ -6,6 +6,7 @@ #' the very regular alignment of [geom_bin_2d()]. #' #' @eval rd_aesthetics("geom", "hex") +#' @eval rd_aesthetics("stat", "binhex") #' @seealso [stat_bin_2d()] for rectangular binning #' @param geom,stat Override the default connection between `geom_hex()` and #' `stat_bin_hex()`. For more information about overriding these connections, diff --git a/man/geom_hex.Rd b/man/geom_hex.Rd index 11dbdb1f87..553787761b 100644 --- a/man/geom_hex.Rd +++ b/man/geom_hex.Rd @@ -138,6 +138,17 @@ the very regular alignment of \code{\link[=geom_bin_2d]{geom_bin_2d()}}. \item \code{\link[=aes_linetype_size_shape]{linewidth}} } Learn more about setting these aesthetics in \code{vignette("ggplot2-specs")}. + + +\code{stat_binhex()} understands the following aesthetics (required aesthetics are in bold): +\itemize{ +\item \strong{\code{\link[=aes_position]{x}}} +\item \strong{\code{\link[=aes_position]{y}}} +\item \code{\link[=aes_colour_fill_alpha]{fill}} +\item \code{\link[=aes_group_order]{group}} +\item \code{weight} +} +Learn more about setting these aesthetics in \code{vignette("ggplot2-specs")}. } \section{Computed variables}{