plot_raincloud: Raincloud plot for hrest objects

View source: R/plot-raincloud.R

plot_raincloudR Documentation

Raincloud plot for hrest objects

Description

Creates a unified raincloud visualization combining:

  • Jittered raw data points

  • Half-violin density plots

  • Mean with confidence interval as pointrange

Usage

plot_raincloud(
  hrest,
  theme = "modern",
  colors = "okabe_ito",
  config = NULL,
  show_bootstrap = TRUE,
  jitter_width = 0.15,
  point_size = 1.5
)

Arguments

hrest

An hrest object from estimate

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.

Details

This provides an alternative to the standard two-panel besthr plot, combining all information in a single comprehensive visualization.

Value

A ggplot object

Examples


d <- make_data()
hr <- estimate(d, score, group)
plot_raincloud(hr)



besthr documentation built on March 18, 2026, 5:08 p.m.