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}{