Reading Graphs · 4 min read

How to read box and violin plots

The two most informative graphs in statistics — and the two most common ways to misread them.

Advertisement
Updated November 2026 · Plain English · With examples

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

ElementWhat it represents
The line inside the boxThe 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 whiskersThe range of values that are not outliers — typically extending to the most extreme data point within 1.5 × IQR from the box.
The individual pointsActual 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?

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.

Make one with your data.

Box and violin plots, with every point visible and medians reported — in the browser, free.

Open StatFlo