Show raw points instead of sparse violins
Back to the Chart galleryxpd charts
How many observations support each treatment group, and is there an outlier in Dose A?
Synthetic small-sample experiment (n = 8 observations per group) for illustrating sparse violin density artifacts.
“Violin plots can give the impression of dense, smooth distributions even when drawn from only a handful of points”
Also covered in Wilke 2019 (9 Visualizing Many Distributions at Once, p. 85).
Before
Interactive chart unavailable.
After
Interactive chart unavailable.
Values
Medians rise from 13.2 (Control) to 16.0 (Dose A) and 17.8 (Dose B), with one Dose A point at 21.5.
Each group contains 8 measurements, and Dose A carries one clear high value at 21.5.
| Group | n | Median response | Min | Max |
|---|---|---|---|---|
| Control | 8 | 13.2 | 11.2 | 15.6 |
| Dose A | 8 | 16 | 13.1 | 21.5 |
| Dose B | 8 | 17.8 | 15.2 | 20.1 |