Grouped Violin Plot
What is a grouped violin plot?
Grouped violin plots are a powerful tool for displaying larger samples of clustered data. They are typically a hybrid plot between a box plot and a mirrored density plot. The "violin" shape itself depicts the data's underlying distribution, with its varying width directly proportional to the concentration of data points at different values. This density is typically estimated and smoothed using a Gaussian kernel. By clustering the data, grouped violin plots enable clear side-by-side comparisons both between different groups and across their respective subcategories.
When to use violin plots
Violin plots excel when working with larger datasets, where there is sufficient data points to reliably estimate the probability density and the sheer volume of data makes distribution dot plots appear visually cluttered and dense.
Chart properties
Prop | Default | Description |
---|---|---|
central tendency | median | median The middle most value of a sorted set of numbers. mean The sum of a set of values divided by the number of values in the set. |
whiskers | range | range The difference between the highest and lowest values within a set. median or mean 1.5 * Interquartile range (1.5*IQR) A range representing Q1 - 1.5 * IQR and Q3 + 1.5 * IQR. median 2.5 percentile - 97.5 percentile (2.5-97.5 %tile) The difference between the 2.5 percentile and the 97.5 percentile, representing the middle 95% of a set. median standard error of the mean (SEM) How much the sample means vary from the population mean. mean standard deviation (SD) A measure of the variation of a set of values around their mean. mean 95% confidence interval (95% CI) 95% probability that the population parameter lies within this range.mean |
sort | none | none The clusters are arranged in insertion order. ascending Clusters are arranged from smallest to largest. descending Clusters are arranged from largest to smallest. |
group by | factor | factor Bars will be grouped by the selected factor, with the other factor defining the subgroups. |