violin() — Violin plot

Shows the shape of a distribution — fat where values are common.

vioplot(x)

Key idea

In plain words

Imagine pouring all the values into a glass — the violin shows where they pile up the most and where they barely reach.

Where you'd use it

Frequently asked questions

Violin or boxplot?
A violin shows the full shape (and can reveal two peaks); a boxplot shows just the summary.