View source: R/position_points_jitterx.R
position_points_jitterx | R Documentation |
This is a position adjustment specifically for 'geom_density_ridges()' and related geoms. It
only jitters the points drawn by these geoms, if any. If no points are present, the plot
remains unchanged. The effect is similar to position_jitter()
: points are randomly shifted up and down
and/or left and right. It add 'hexpand' that can control shift horizontally.
position_points_jitterx(
width = 0,
height = 0.2,
yoffset = 0,
hexpand = NA,
adjust_vlines = FALSE,
seed = NULL
)
width |
Width for horizontal jittering. By default set to 0. |
height |
Height for vertical jittering, applied in both directions (up and down). By default 0.2. |
yoffset |
Vertical offset applied in addition to jittering. |
hexpand |
numeric, distance to be shifted horizontally for geoms that have a position, default is NA. |
adjust_vlines |
If |
seed |
Random seed. If set to NULL, the current random number generator is used. If set to NA, a new random random seed is generated. If set to a number, this number is used as seed for jittering only. |
Other position adjustments for ridgeline plots: position_points_sinax
, position_raincloudx
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.