Bar graphs with error bars show a summary — a mean and a spread. Box and violin plots show the whole distribution: where the data is dense, where it is thin, and whether it is lopsided. That extra information is exactly where the misreadings happen.
Anatomy of a box plot
| Element | What it represents |
|---|---|
| The line inside the box | The median — the middle value. Half the data is above it, half below. It is not the mean. |
| The box (bottom and top edges) | The interquartile range (IQR) — the middle 50% of values, from the 25th to the 75th percentile. |
| The whiskers | The range of values that are not outliers — typically extending to the most extreme data point within 1.5 × IQR from the box. |
| The individual points | Actual observations (in StatFlo, all of them when "show data points" is on) — outliers beyond the whiskers are always shown as points. |
Misreading #1: calling the middle line "the mean"
The line inside the box is the median. In a symmetric distribution the mean and median are close, so the confusion is harmless — until the data is skewed, which is precisely when box plots matter. In a skewed group the mean can sit well away from the median, and the two tell different stories. If you want a mean, say mean.
Misreading #2: assuming a long whisker means "outliers"
Whisker length reflects the spread of the non-outlying data. A group with a long whisker is not "full of outliers" — it is simply more variable on that side. Outliers are the points beyond the whiskers, and StatFlo draws them individually so you can see how many there are and how far out they sit.
Anatomy of a violin plot
A violin plot is a box plot with the distribution turned sideways: the width at each height shows how many observations are near that value. A wide belly means lots of data there; a thin neck means few. Inside the violin, StatFlo draws a miniature box (median and quartiles), so you get both views at once.
Violins shine when distributions are multi-peaked or unusually shaped — two clusters of values would be invisible in a mean-and-error-bar chart but obvious as a two-bellied violin.
So which graph should you use?
- Comparing a few groups, want clarity: box plot.
- Shapes matter (skew, multiple peaks): violin plot.
- Audience expects a paper-style bar chart: bar with SD/SEM — but always plot the raw points if the groups are small.
The safest habit: show the raw data. With fewer than ~20 values per group, the mean and error bar hide how the data is distributed — and reviewers increasingly ask for points to be visible.
How this connects to your test choice
Box and violin plots are also the cheapest normality check you have. If the median sits far from the box centre, or the points trail off to one side, the data is skewed — a strong argument for a rank-based test (Mann-Whitney U, Kruskal-Wallis) instead of a t-test or ANOVA. See parametric vs non-parametric tests for the full reasoning.
In StatFlo: choose Box or Violin, tick "show individual data points", and the tool also prints a distribution summary — n, median, IQR, min and max for every group.