By · Updated

Violin Plot Maker

Distribution Chart from Data, Download SVG or PNG Free

No ratings yet

OneTask is free, with no sign-up, and built by one person.
If this tool saved you time, a coffee helps keep new ones coming.

How the Violin Plot Maker works

This violin plot maker shows the shape of a distribution. A violin plot shows the whole shape of a distribution, not just its quartiles: each group is drawn as a smoothed, mirrored curve that is wide where values are common and narrow where they are rare, with a small box plot, quartile lines or the raw points inside. Paste one column of numbers per group, or a two-column list of group and value, and download the chart as SVG or PNG. Nothing is uploaded.

Violin plot maker: what to paste

Two layouts work. The wide layout has a header row naming each group and one column of numbers beneath it; columns can be different lengths and blank cells are skipped. The long layout has exactly two columns, a group name and a value, one row per observation. Separate cells with commas or tabs, so a block copied from a spreadsheet pastes straight in. Each group needs at least two numbers, and the shape only becomes trustworthy from a few dozen.

How the shape is drawn

The curve is a kernel density estimate: a small Gaussian bump is placed on every value and the bumps are added up, giving a smooth estimate of how densely values sit at each point on the axis. The bandwidth of the bumps follows Silverman's rule of thumb from the spread and count of the group, so groups with more data get finer detail. Smoothing scales that bandwidth: Narrow shows more bumps and possible multiple peaks, Wide gives a rounder shape that hides noise. The curve is cut off just beyond the smallest and largest values so it does not suggest data that is not there.

Width and the inner mark

Same width stretches every violin to the same maximum width, which makes shapes easy to compare but hides the fact that one group may be far more concentrated than another. Scaled to density uses one shared scale, so a tight group appears fat and a spread-out group thin. Inside each violin, Box draws a miniature box plot with the median as a white dot and the inter-quartile range as a bar, the usual convention; Quartile lines draws the three quartiles across the shape; Points overlays every observation with a little sideways jitter; Nothing leaves the outline clean for a slide.

Reading a violin plot

A single bulge with the median near its centre is a roughly symmetric distribution. A bulge near one end with a long tail towards the other is skew. Two bulges mean the group is really a mix of two populations, which a box plot would hide completely; that is the main reason to prefer a violin. The width at any point is relative density, not a count, so compare shapes rather than reading areas as totals.

Exporting

Download SVG gives a vector file with one path per violin and editable text. Download PNG renders at one, two or three times the preview width. Copy SVG puts the markup on the clipboard.

FAQ

Violin or box plot?

A box plot is simpler and works with small samples; a violin shows the shape, including multiple peaks, and needs more data to be honest. With fewer than about twenty values per group, use the box plot maker, or show the points inside the violin so readers can judge.

Why does the violin extend past my data?

The density curve is smooth, so it tails off a little beyond the smallest and largest values. This page trims it at two bandwidths past each end; choose Narrow smoothing to tighten it further.

Can I plot groups with different sizes?

Yes, and it is normal; the shapes are each drawn from their own values. The stats panel gives the count for every group so the difference is visible.

Why are the shapes different from my statistics package?

Every package picks a bandwidth and kernel slightly differently, and some cut the tails at different points. The overall shape should agree; small differences in the outline are expected.

See also: all Chart Makers tools, Images, Audio, Video & Screen, PDF, SVG, Simulations & Screensavers, Generative Art, 3D Model Viewers, Drawing Pads, Mockups & 3D Making, Diagram Makers, 3D Science, Tracker Music.

Related tools