mark_raincloud() is a convenience that composes a raincloud: a one-sided
density "cloud" (mark_halfeye()) with the raw observations as "rain" below
it (mark_point() with sina spread). It is exactly
plot |> mark_halfeye(...) |> mark_point(..., position = position_sina()),
so any color/fill mapping in ... flows to both layers.
Arguments
- plot
A PlotSpec.
- x, y
The categorical
xand the sampley(tidy-eval).- ...
Further shared encodings (e.g.
color,fill) forwarded to both the slab and the points.- width
Sina spread of the rain, as a fraction of the band (default
0.4).- alpha
Point opacity for the rain (default
0.5).
Value
The modified PlotSpec.

