Best Data Viz
Distribution

Violin Plot

Combines box plot with kernel density to show full distribution shape.

Response Distribution by Treatment

Clinical trial results

View data (60 rows)
Chart data table: Response Distribution by Treatment
GroupValue
Control42
Control44
Control46
Control47
Control48
Control48
Control49
Control50
Control50
Control51
Control52
Control52
Control53
Control54
Control55
Control47
Control49
Control51
Control53
Control46
Treatment A56
Treatment A58
Treatment A60
Treatment A61
Treatment A63
Treatment A63
Treatment A64
Treatment A65
Treatment A66
Treatment A67
Treatment A68
Treatment A69
Treatment A70
Treatment A72
Treatment A75
Treatment A62
Treatment A64
Treatment A66
Treatment A68
Treatment A61
Treatment B68
Treatment B71
Treatment B74
Treatment B76
Treatment B78
Treatment B79
Treatment B80
Treatment B81
Treatment B82
Treatment B83
Treatment B85
Treatment B86
Treatment B88
Treatment B90
Treatment B93
Treatment B77
Treatment B80
Treatment B83
Treatment B85
Treatment B75
Make a violin plot with your data

Use a violin plot when…

  • Comparing distribution shapes across groups
  • Revealing bimodal distributions
  • Showing skew or asymmetry that a box plot would hide

Avoid when…

  • Small samples (rule of thumb: n<20 per group makes the KDE unreliable)
  • When audience is unfamiliar with the form

Data it needs

PropertyValue
Min Rows10
Min Columns1
Column Types
number
NotesAt least ~20 observations per group is recommended; below that the KDE shape is unreliable.

Visual anatomy

Marks
area (mirrored)embedded box-plot
Channels
width (density)position-ymedian tick
Axes
x-categoricaly-quantitative

Guiding principles

Consider instead

Common mistakes

  • Wrong bandwidth (the KDE smoothing parameter — bin width is the histogram analogue)

  • Ignoring outliers

History

Introduced by Hintze and Nelson in 1998 as an improvement over box plots.

Accessibility notes

Provide summary statistics as text alternative.

Related reading

Got data? Let's see what works.

Drop your CSV. You'll get a Violin Plot plus four alternatives - ranked by which one actually fits your data best.