Violin plot
A statistical graphic combining box plot and kernel density plot.
Colohisto · CC BY 4.0
A violin plot, sometimes called a bean plot, is a type of statistical chart used to compare probability distributions. It resembles a box plot but adds more detail by including a rotated kernel density plot on each side.
The plot was introduced in 1997 by Jerry L. Hintze and Ray D. Nelson. Their goal was to present more information than the box plot, which John Tukey had created in 1977. The name comes from the shape's supposed resemblance to a violin.
Like a box plot, a violin plot includes a marker for the median, a box or marker showing the interquartile range, and, if the sample size is small enough, all individual data points. However, while a box plot only gives summary statistics, a violin plot shows the full distribution of the data. This makes it useful for multimodal data (data with more than one peak), as it reveals the positions and relative sizes of different peaks.
Violin plots are typically used to compare the distribution of a variable across different categories—for example, comparing temperature distributions between day and night, or car prices across different manufacturers. They can also have multiple layers: the outer shape might represent all possible results, the next layer inside the values that occur 95% of the time, and a further inner layer the values that occur 50% of the time.
Despite their advantages, violin plots are less popular than box plots. They can be harder for unfamiliar readers to interpret, in which case a series of stacked histograms or kernel density plots may be a more accessible alternative. Originally, a violin plot combined a box plot with a two-sided kernel density plot, but today the term sometimes refers simply to a two-sided kernel density plot without any box plot or other elements.
- Proposed by
- Jerry L. Hintze and Ray D. Nelson
- Year proposed
- 1997
- Based on
- Box plot (John Tukey, 1977)
- Also known as
- Bean plot
- Type
- Statistical graphic
Lore & Background
The violin plot was introduced in 1997 by Jerry L. Hintze and Ray D. Nelson to enhance the information provided by box plots. While a box plot shows summary statistics such as median and interquartile ranges, the violin plot shows the full distribution of the data, including the probability density at different values, usually smoothed by a kernel density estimator. The plot includes all elements of a box plot: a marker for the median, a box or marker for the interquartile range, and possibly all sample points if the number of samples is not too high.
Reader's Guide
The violin plot is significant because it allows for the visualization of multimodal data, showing the presence of different peaks, their position, and relative amplitude. Like box plots, violin plots are used to compare a variable distribution across different categories, such as temperature distribution between day and night or car prices across different makers. A violin plot can have multiple layers: the outer shape represents all possible results, the next layer inside might represent values that occur 95% of the time, and a further inner layer might represent values that occur 50% of the time. Despite these advantages, violin plots are less popular than box plots and may be harder for readers unfamiliar with them. A more accessible alternative is to plot a series of stacked histograms or kernel density plots. The original meaning of 'violin plot' was a combination of a box plot and a two-sided kernel density plot, but currently the term is sometimes understood just as two-sided kernel density plots without a box plot or other elements.
Did You Know?
- The name comes from the plot's alleged resemblance to a violin.
- A violin plot can show multimodal data, including the presence of different peaks, their position, and relative amplitude.
The Visual Language of Data
A plot serves as a graphical technique for representing a data set, typically displaying the relationship between two or more variables in a visual format. Whether sketched by hand, generated by a computer, or produced through mechanical and electronic plotters, the underlying goal remains the same: to transform raw numbers into something the human eye can quickly interpret. While tabular data and lists of values carry the same information, a well-constructed graph allows a viewer to derive understanding almost instantly, spotting patterns and relationships that would be far more laborious to extract from rows of figures. Beyond mere visualization, a plot equipped with a proper scale or ruler can function as a reading tool, letting a user determine the value of an unknown variable plotted as a function of a known one. This dual capacity—as both an interpretive aid and a measurement instrument—makes plots indispensable across mathematics, the sciences, engineering, technology, and finance.
Graphical Methods as a Statistical Shortcut
In the landscape of statistical and data analysis, procedures divide broadly into two families: quantitative and graphical. The quantitative side encompasses well-established statistical procedures that produce numeric or tabular output—hypothesis testing, analysis of variance, point estimates with confidence intervals, and least squares regression all belong here. These remain the mainstream of classical analysis. Yet alongside them sits a parallel toolkit of graphical techniques, including scatter plots, spectrum plots, histograms, probability plots, residual plots, box plots, and block plots. What distinguishes the graphical approach is its speed and directness. Rather than waiting for a p-value or a regression coefficient, a plot offers a short path to insight: it helps a practitioner test assumptions, select and validate models, choose estimators, identify relationships, determine factor effects, and flag outliers. In essence, statistical graphics reveal the underlying structure of a data set in a way that purely numerical summaries cannot match.
A Rich Taxonomy of Plot Types
The world of statistical plotting is far from monolithic. A biplot, for instance, simultaneously displays samples as points and variables as vectors, linear axes, or nonlinear trajectories, and can even accommodate categorical variables through category-level points. A box plot condenses a group of numerical observations into a five-number summary—smallest value, lower quartile, median, upper quartile, and largest value—while also flagging potential outliers. The funnel plot, introduced by Light and Pillemer in 1994, scatters treatment effects against study size to visually expose publication bias in meta-analyses. A forest plot, developed for medical research, graphically represents the strength of evidence across randomized controlled trials and has since expanded to observational studies in fields like environmental epidemiology. Meanwhile, the normal probability plot arranges data against a theoretical normal distribution so that approximate linearity signals normality, and departures from that line reveal otherwise. Each type serves a distinct analytical purpose.
Plots as Bridges Across Disciplines
Plots transcend any single field, serving as a universal visual language. In control theory, Bode plots characterize system behavior; in signal processing, the Nichols plot maps the logarithm of magnitude against phase on orthogonal axes. Particle physicists rely on the Dalitz plot, a scatterplot that represents the relative frequency of kinematically distinct three-body decay configurations. In analytical chemistry and biostatistics, the Bland–Altman plot—identical to what other fields call a Tukey mean-difference plot—assesses agreement between two different assays. The Galbraith radial plot offers an alternative view of heterogeneity in meta-analyses by displaying multiple estimates of the same quantity alongside their differing standard errors. Even animated comet plots, which trace data points across two or three dimensions on a screen, and hierarchical drain plots that nest pie-chart levels to convey proportional structure, illustrate how the basic act of plotting adapts to virtually any domain requiring the communication of relationships among variables.
Gallery






Frequently Asked Questions
Who is Violin plot?
Violin plot is a statistical graphic that layers a rotated kernel density estimate onto each side of a classic box-plot summary, giving a richer view of a distribution's shape. It also goes by the nickname 'bean plot' in some circles.
What are Violin plot's powers/role?
Its core job is to let you compare probability distributions across groups while simultaneously displaying the median, interquartile range, and the full density curve. That combination means a single visual can reveal both central tendency and the spread or multimodality of the underlying data.
Who created Violin plot?
Jerry L. Hintze and Ray D. Nelson introduced the design in 1997, building directly on the box plot that John Tukey had proposed back in 1977. Their stated goal was to squeeze more distributional detail into one compact visual element.
Why is Violin plot important?
It fills the gap between a bare five-number summary and a full histogram, making hidden features like skewness or multiple modes immediately visible. Because of that added information, it has become a go-to choice whenever analysts need to contrast several groups in a single figure.
More in Graphs And Data Visualization 1-24
Spotted an error? Know more?
Reader corrections go straight into our review queue. Suggest an edit · How this site is sourced
