A violin plot combines a box plot with a mirrored Gaussian kernel density estimation (KDE) curve so you can see both summary quartiles and full distribution shape—including bimodal peaks, skew, and clusters. Paste 1 to 6 columns from Excel or Google Sheets above to tune Silverman bandwidth, toggle jittered points, and export vector SVG or 2x/3x PNG.
How to Use the Violin Plot Maker
- Step 1
Paste 1 to 6 group columns
Copy columns directly from Excel or Google Sheets with group names in the header row, or enter labeled rows such as "Control: 42, 46, 51, 55".
- Step 2
Tune KDE bandwidth and overlays
Adjust the Silverman bandwidth multiplier (0.4× to 2.2×) to inspect fine peaks or smooth overall shape, then toggle inner box, jitter points, or horizontal orientation.
- Step 3
Review group metrics and export
Compare group medians, IQRs, means, standard deviations, and exact bandwidths in the table below, then download a watermark-free SVG, 2x/3x PNG, or CSV.
Gaussian Kernel Density Estimation (KDE) & Silverman Bandwidth Formulas
Each violin half-width traces a non-parametric Gaussian kernel density estimate f̂(y), normalized to peak width and paired with the five-number summary so readers see both center and multimodal structure.
Places a smooth normal bell kernel φ(u) = exp(−u²/2)/√(2π) over each data point yᵢ and averages them.
Automatically balances bias and smoothness using the smaller of sample SD (s) and robust IQR scale.
Smaller multipliers reveal bimodal sub-peaks; larger multipliers smooth sampling noise into broad envelopes.
Summarizes central spread and flags observations outside standard Tukey fences.
Consider Section A exam scores [54, 56, 58, 59, 61, 62, 83, 85, 87, 89, 91, 93] (n = 12). A standard box plot draws one wide box around median 72.5, hiding that nobody actually scored in the 70s. With sample SD s = 15.1 and IQR = 29 (IQR/1.34 = 21.6), Silverman’s rule gives h₀ = 0.9 × 15.1 × 12^(−0.2) ≈ 8.27, clearly revealing the two distinct clusters near 58 and 88.
Violin Plot vs. Box Plot vs. Histogram: Choosing the Right Distribution Chart
| Chart Type | Shows Bimodal Peaks? | Shows Median & IQR? | Best Group Count & Use Case |
|---|---|---|---|
| Violin Plot | Yes (via smooth KDE curve) | Yes (embedded inner box) | 1–6 groups when distribution shape and multimodality matter |
| Box & Whisker Plot | No (hides internal peaks) | Yes (5-number summary + fences) | 1–6 groups when comparing clean medians, spread, and 1.5×IQR outliers |
| Histogram | Yes (via binned bars) | No (needs separate calculation) | 1 continuous dataset when inspecting exact class-interval counts |
| Dot Plot | Yes (stacked dots) | Optional reference markers | Small samples (n ≈ 10–50) where every individual observation matters |
Common Homework & Lab Report Mistakes to Avoid
Using a tiny bandwidth on small samples
Setting the bandwidth multiplier too low when n < 15 produces spiky, bumpy violins around individual points. Keep the multiplier near 1.0× (Silverman default) and enable jitter points to show exact sample locations.
Misreading violin tails beyond min and max
Because Gaussian kernels extend smoothly past the minimum and maximum observations, violin tips taper gently beyond the observed range. Check the inner whiskers or raw points for exact data bounds.
Ignoring unequal sample sizes across groups
A group with n = 8 and a group with n = 80 can look equally wide when normalized to the same maximum width. Enable "Scale width by sample n" or inspect the n column in the summary table.
Frequently Asked Questions
What is a violin plot used for?+−
A violin plot visualizes the full probability density of a numerical variable across one or more groups. Unlike a box plot, it reveals whether data is bimodal, skewed, or clustered around specific values.
How is the width of a violin plot calculated?+−
At each vertical position y, the width is proportional to the Gaussian kernel density estimate f̂(y). Wider sections indicate where more observations are concentrated, while narrow necks indicate sparse regions.
What does Silverman bandwidth control?+−
Bandwidth h controls how smoothly the density curve averages neighboring points. Silverman’s rule h₀ = 0.9·min(s, IQR/1.34)·n^(−1/5) provides an optimal baseline, and our slider lets you scale from 0.4× (detailed) to 2.2× (smooth).
Why does a violin plot include a box plot inside?+−
Combining the KDE shape with an inner IQR box, median bar, and whiskers gives readers exact quantitative anchors (median, Q1, Q3) alongside the qualitative density silhouette.
Can I plot a violin plot with individual data points?+−
Yes. Keep "Jittered data points" checked to overlay each raw observation inside the violin silhouette, with 1.5×IQR outliers highlighted in coral.
Does this violin plot maker upload my dataset?+−
No. All Gaussian KDE math, quartile calculations, and SVG/PNG exports execute 100% locally in your browser with zero server storage.
More Free Statistical Plot Makers
Plot normal curves for any μ and σ with 68-95-99.7 bands, shaded [a, b] probability & Z-scores.
Plot X–Y pairs with linear, quadratic, or exponential trendlines, R², and Pearson r.
4-quadrant coordinate plane with origin axes, custom tick steps, labels, and line segments.
Compare 1–6 groups with TI-84 Exclusive vs Excel Inclusive quartiles and 1.5×IQR outliers.
Auto Sturges/Scott bin widths, adjustable bins, and live frequency distribution table.
Stacked dot plots with Mean, Median, and Mode vertical reference markers.
Single-sided and back-to-back stem-and-leaf plots with sorted leaves and automatic Key.
Long-label friendly horizontal bars with automatic sorting and percentage annotations.
Compare multiple trends over time with straight or smooth curve interpolation.
Clean pie and donut charts with automatic percentages, degrees, and print-ready palettes.
Meta-analysis forest plots with 95% CIs, inverse-variance weights, I², and fixed/random-effects diamonds.
Assess normality with theoretical Z quantiles, Blom/Hazen positions, 95% confidence bands, and R².