DistributionSample
Violin plot
Mirrors a smoothed distribution around a centre line, showing the full shape of each group.
The shape of session length per day type: note the weekend’s two peaks.
Sample data
Use it when
- Groups may have two peaks or long tails
- Comparing shapes across a few groups
Avoid it when
- Small samples: the smoothing invents shape the data does not have
Display modes
- Default
- The shape of session length per day type: note the weekend’s two peaks.
- Distribution
- Adds the quartile bar, median and raw points inside each shape.
More in Distribution
Histogram
Counts how many observations fall into each range of values, revealing the shape of a distribution.
Box plot
Summarises each group with median, quartiles, whiskers and outliers, so many distributions compare in little space.
Density plot
A smoothed histogram: a continuous curve showing where values concentrate.