From a57c86ae47840c0406165672fcc510c9f63cc97d Mon Sep 17 00:00:00 2001 From: Joran Elias Date: Tue, 6 Feb 2024 15:08:22 -0700 Subject: [PATCH] document weight aesthetic --- R/geoms.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/geoms.R b/R/geoms.R index 7a6775c..4f22d9b 100644 --- a/R/geoms.R +++ b/R/geoms.R @@ -390,6 +390,7 @@ GeomRidgeline <- ggproto("GeomRidgeline", Geom, #' #' * **`x`** #' * **`y`** +#' * `weight` Optional case weights passed to `stats::density` to calculate a weighted density estimate #' * `group` Defines the grouping. Not needed if a categorical variable is mapped onto `y`, but needed otherwise. Will typically be the same #' variable as is mapped to `y`. #' * `height` The height of each ridgeline at the respective x value. Automatically calculated and @@ -475,7 +476,7 @@ GeomDensityRidges <- ggproto("GeomDensityRidges", GeomRidgeline, required_aes = c("x", "y", "height"), - optional_aes = c("point_color", "vline_color", "vline_size", "vline_width"), + optional_aes = c("point_color", "vline_color", "vline_size", "vline_width", "weight"), extra_params = c("na.rm", "panel_scaling"),