Seedlabs
Source research

ggrain – a R package for raincloud plots

Nicholas Judd, Jordy van Langen, Davide Poggiali, Kirstie Jane Whitaker, Tom R. Marshall, Micah Allen et al. · 2024 · 1 citationsRead the paper

Abstract Clear data visualization is essential to effectively communicate empirical findings across various research fields. Raincloud plots fill this need by offering a transparent and statistically robust approach to data visualization. This is achieved by combining three plots in an aesthetically pleasing fashion. First, a dot plot displays raw data with minimal distortion, allowing a fast glance at the sample size and outlier identification. Next, a box plot displays key distributional summary statistics such as the median and interquartile range. Lastly, a violin plot transparently displays the underlying distribution of the data. Despite the widespread use of raincloud plots, an R-package in alignment with the ‘grammar of graphics’ was lacking. ‵ggrain‵ fills this need by offering one easy-to-use function (‵geom_rain‵) allowing the quick and seamless plotting of rainclouds in the R ecosystem. Further, it enables more complex plotting features such as factorial grouping, mapping with a secondary (continuous) covariate, and connecting observations longitudinally across multiple waves.

What the full text shows

Deployed in practice
  • Development of the `ggrain` R package providing the `geom_rain` function to create raincloud plots. (R ecosystem, ggplot2 extension)
  • Integration of three visualization types (dot plot, box plot, and violin plot) into a single plot to show raw data, summary statistics, and distribution. (Raincloud plots)
  • Support for advanced plotting features including factorial grouping and mapping with secondary continuous covariates. (`ggrain` package)
  • Ability to visualize intra-individual change and variability across multiple waves in longitudinal designs. (Longitudinal raincloud plots)
Setup
Software package developed for the R language; available on CRAN and GitHub.
How
The authors developed an R package extension for ggplot2 that implements a specific geometry (`geom_rain`) to combine dot, box, and violin plots. They provided a vignette and source code for implementation of factorial and longitudinal designs.

Summarized by Gemma 4 from the open-access full text · 11 Oct 2026. Read it