This article describes how to create a violin plot from one or more numeric variables. You will end up with a plot like this:
Requirements
- A Numeric variable that you want to display as densities.
- A categorical variable (Nominal, Ordinal, Binary) to use for groupings.
Method
- From the toolbar, or by clicking + in the Report tree, go to Visualization
> Distributions > Violin.
- In the object inspector
, under Data > Data Source > Variables, select your Numeric variable.
- Under Data > Data Source > Groups, select the categorical variable to group by.
- Click Calculate and/or ensure Calculate automatically is checked.