Skip to content

Commit

Permalink
document weight aesthetic
Browse files Browse the repository at this point in the history
  • Loading branch information
Joran Elias committed Feb 6, 2024
1 parent 7223fad commit a57c86a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/geoms.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"),

Expand Down

0 comments on commit a57c86a

Please sign in to comment.