Violin plot
A violin plot is a statistical visualization that represents a numeric distribution with a mirrored density shape, often alongside summary statistics.
D3.js in Action, Third Edition
A violin plot is a distribution chart that uses a mirrored, smoothed density shape to show where numeric observations are concentrated.
- How it is used
- Compares salary distributions across data visualization roles by showing where observations are concentrated.
- How deep it goes
- Works through data preparation, three scales, histogram bars, mirrored D3 areas, and mean and quartile annotations.
- Examples
- Uses salary data for analysts, developers, designers, scientists, and leadership, with a mean dot and interquartile line.
- What you can do after
- Build it from scratch with D3 bins, scales, and an SVG area, then add mean and quartile markers.
Read how D3.js in Action, Third Edition explains violin plot →
Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI
A violin plot visualizes the distribution and density of numeric values, often alongside summary statistics such as the median.
- How it is used
- Interprets how model features influence predictions through SHAP-value distributions, importance, direction, and feature-value associations.
- How deep it goes
- Explains width, shape, median, sign, color, and outliers, but does not develop the underlying density estimation.
- Examples
- Uses accommodation-price features such as availability, coordinates, bedrooms, and beds to illustrate prediction effects.
- What you can do after
- Apply it via SHAP to inspect which features matter and whether their values raise or lower predictions.
Read how Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI explains violin plot →
Statistics Slam Dunk
A violin plot displays the distribution and shape of numeric data by combining a mirrored probability-density shape with optional summary statistics.
- How it is used
- Uses continuous-data distributions to compare shape, frequency, and summary statistics in practical analyses.
- How deep it goes
- Explains density shape, embedded summaries, and skewness, then demonstrates ggpubr construction without developing the density calculation itself.
- Examples
- Demonstrates games played and games won for current and past NBA franchises from 1946 through 2020.
- What you can do after
- Builds distribution graphics in R with ggpubr, adds boxplots and mean markers, and interprets density shape and skewness.
Grokking Bayes
A statistical visualization that combines a distribution's density shape with summary information to show how values are distributed.
- How it is used
- Visualizes prior predictive distributions across house sizes to inspect trends and plausibility.
- How deep it goes
- Explains comparative interpretation through spread, trend, and implausible negative predictions, with a plotting call but no density internals.
- Examples
- Uses 10,000 predicted prices for ten square-footage values in a house-price model.
- What you can do after
- Diagnose implausible predictions and compare uncertainty across input values.
What to know first
- box plotA box plot is a statistical graphic that summarizes a numerical distribution using quartiles, a median, and whiskers or markers indicating spread and potential outliers.
- CSVCSV is a text format for tabular data in which records contain fields separated by commas, with conventions for quoting fields that contain special characters.
- histogramA histogram is a representation that groups observations into bins and records their frequencies or other aggregate values.
- meanThe mean is a measure of central location equal to the arithmetic average of numerical observations, or the probability-weighted average of a random variable’s possible values.
Related concepts
- box plotcontrasts with · A box plot is a statistical graphic that summarizes a numerical distribution using quartiles, a median, and whiskers or markers indicating spread and potential outliers.
- density plotuses · A density plot is a visualization that estimates and displays the shape of a continuous variable’s probability distribution as a smooth curve.
- histogramkind of · A histogram is a representation that groups observations into bins and records their frequencies or other aggregate values.
- probability densityuses · A probability density is a nonnegative function describing the distribution of a continuous random variable, with probabilities over intervals or regions given by integrating the function.
- continuous datauses · Continuous data consists of numerical values that can vary across a range with arbitrarily fine precision.
Questions about violin plot
What is violin plot?
A violin plot is a statistical visualization that represents a numeric distribution with a mirrored density shape, often alongside summary statistics.
Which Manning books explain violin plot?
D3.js in Action, Third Edition, Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI, Statistics Slam Dunk and Grokking Bayes.
What should I know before learning violin plot?
Manning books that teach violin plot usually introduce box plot, CSV, histogram and mean first.
What is the difference between violin plot and box plot?
A violin plot is a statistical visualization that represents a numeric distribution with a mirrored density shape, often alongside summary statistics. A box plot is a statistical graphic that summarizes a numerical distribution using quartiles, a median, and whiskers or markers indicating spread and potential outliers.
What is violin plot a kind of?
Violin plot is a kind of histogram. A histogram is a representation that groups observations into bins and records their frequencies or other aggregate values.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.



