Show distribution shape and estimate uncertainty in one chart
Separate the spread of observations from uncertainty in a statistic; combine raw points, a density summary and a clearly defined interval when they answer the question.
A distribution describes how observed values vary; an interval around a mean or difference describes uncertainty in an estimate. They answer different questions, so label them separately. A raincloud plot can combine a half violin for smoothed density, jittered observations and a box or summary statistic. Add a confidence interval only when it is calculated for the target estimate and its method is stated.
Figure 1. The half-violins, points, and boxes above represent observed shape and spread; the point and interval below represent a group difference and its 95% confidence interval. Schematic only; no real data or calculation is shown.
For example, compare the time people take to complete the same task in two interface versions. The points show the observed times; the density shows whether values cluster around quick completion or have a long tail. In the lower panel, plot the quantity chosen before analysis, such as the difference in mean completion time, with its confidence interval. If the same people are measured twice, use an estimand for within-person differences; for different groups of people, use a method suited to an independent-sample design. State both the sampling design and interval method in a caption or note because interpretation depends on them.
Choose the layers in this order: (1) state the outcome and groups; (2) show individual observations when privacy and volume allow; (3) add a density or histogram for shape; (4) add median and quartiles or a mean; (5) add an interval for the estimate, naming what it represents. Use consistent axes across groups. With small samples, show every point and warn that density smoothing is unstable; with many overlapping points, use transparent jitter or a binned display and report the sample size.
Do not treat the width of a violin as a confidence interval, or an error bar as the spread of individual values. Density depends on bandwidth and boundary choices. A 95% confidence interval describes a procedure’s long-run coverage under its assumptions; it is not a 95% probability that this particular interval contains a fixed parameter. For a predicted individual outcome, use a prediction interval instead.
A practical design is a half violin plus points and a thin box for each group, with a separate dot-and-whisker for the estimated group difference below. This makes the raw distribution and the inferential comparison visually distinct. Check labels, n, units, missing-data handling and whether intervals are comparable before release.
Sources: Allen et al., Raincloud plots (2019); Gardner & Altman, Confidence intervals rather than P values (1986).