View source: R/plot-raincloud.R
| plot_raincloud | R Documentation |
Creates a unified raincloud visualization combining:
Jittered raw data points
Half-violin density plots
Mean with confidence interval as pointrange
plot_raincloud(
hrest,
theme = "modern",
colors = "okabe_ito",
config = NULL,
show_bootstrap = TRUE,
jitter_width = 0.15,
point_size = 1.5
)
hrest |
An hrest object from |
theme |
the visual theme to use. Either "modern" (default) or "classic" |
colors |
the color palette to use. Either "okabe_ito" (default), "default", or "viridis" |
config |
an optional besthr_plot_config object for advanced customization. If provided, theme and colors parameters are ignored. |
show_bootstrap |
Ignored (kept for backward compatibility). |
jitter_width |
Numeric width of jitter for data points. Default 0.15. |
point_size |
Numeric size for jittered points. Default 1.5. |
This provides an alternative to the standard two-panel besthr plot, combining all information in a single comprehensive visualization.
A ggplot object
d <- make_data()
hr <- estimate(d, score, group)
plot_raincloud(hr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.