Skip to main content
StatsPlotMaker

Violin Plot Maker

Multi-Group Gaussian KDE Density Curves · Silverman Bandwidth · Embedded IQR Box, Whiskers & Jitter Points · HD PNG/SVG Export

Sample datasets
Data InputJump to Chart

Paste 1–6 columns from Excel/Sheets (or type 'Group A: 42, 46, 51' per line).

0.4× (More detail)1.0× (Silverman)2.2× (Smoother)
Recovery Score Distribution by Treatment ArmGaussian KDE (Silverman × 1.0) · Exclusive (TI-84) Quartiles20406080100120Recovery Score (points)Treatment ArmPlacebon=12Mean = 57.5Low Dosen=12Mean = 70.92High Dosen=12Mean = 81.58
Groups / n
3 (12 pts)
Median (Q2)
56.5
IQR (Q3−Q1)
16.5
Mean
57.5
Sample SD
10.27
Bandwidth (h)
5.625
GroupnQ1MedianQ3IQRMeanSDKDE h
Placebo1249.556.56616.557.510.275.625
Low Dose126070822270.9212.126.638
High Dose127781.586981.586.233.411

Click any group row above to inspect its Silverman bandwidth and quartile derivation.

100% Free & Private — All statistical calculations and SVG exports run locally in your browser.
Quick Summary

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

  1. 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".

  2. 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.

  3. 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.

Gaussian Kernel Density Estimator
f̂(y) = (1 / (n · h)) · Σ φ((y − yᵢ) / h)

Places a smooth normal bell kernel φ(u) = exp(−u²/2)/√(2π) over each data point yᵢ and averages them.

Silverman's Rule-of-Thumb Bandwidth
h₀ = 0.9 · min(s, IQR / 1.34) · n^(−1/5)

Automatically balances bias and smoothness using the smaller of sample SD (s) and robust IQR scale.

Effective Adjustable Bandwidth
h = multiplier × h₀

Smaller multipliers reveal bimodal sub-peaks; larger multipliers smooth sampling noise into broad envelopes.

Inner IQR Box & 1.5×IQR Whiskers
IQR = Q3 − Q1 | Fences = Q1 − 1.5·IQR, Q3 + 1.5·IQR

Summarizes central spread and flags observations outside standard Tukey fences.

Worked Example

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 TypeShows Bimodal Peaks?Shows Median & IQR?Best Group Count & Use Case
Violin PlotYes (via smooth KDE curve)Yes (embedded inner box)1–6 groups when distribution shape and multimodality matter
Box & Whisker PlotNo (hides internal peaks)Yes (5-number summary + fences)1–6 groups when comparing clean medians, spread, and 1.5×IQR outliers
HistogramYes (via binned bars)No (needs separate calculation)1 continuous dataset when inspecting exact class-interval counts
Dot PlotYes (stacked dots)Optional reference markersSmall 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.

Recommended Statistics Guides

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