Violinplots allow to visualize the distribution of a numeric variable for one or several groups. It is really close from a boxplot, but allows a deeper understanding of the density. Violins are
particularly adapted when the amount of data is huge and showing individual observations gets impossible. Seaborn is particularly adapted to realize them through its violin function.
Violinplots are a really convenient way to show the data and would probably deserve more attention compared to boxplot that can sometimes hide features of the data.
Sponsors
Input format
Format 1: 1 numerical variable (for the Y axis) + 1 categorical (gives the groups). This is the ‘long‘ or ‘tidy‘ format.
Format 2: several numerical variables : one per group. This is the ‘wide‘ format.
Sponsors
Seaborn
- #50 Input format for violinplot
- #51 Horizontal violinplot | seaborn
- #52 Violinplot linewidth
- #52 Control violinplot width | seaborn
- #53 Control violinplot color | seaborn
- #55 Control order of groups on violinplot
- #54 Grouped violinplot | seaborn
- #58 Show number of obs on violinplot
- #53 Control violinplot color | seaborn
related
- HISTOGRAM
- BOXPLOT
- DENSITY