This article describes how to create a violin plot from one or more numeric variables. Whereas boxplots show key statistics for your data's distribution (i.e. Average, quartiles, outliers), a violin plot shows the density of all values and allows you to see a more detailed shape of your distribution. You will end up with a plot like this:
Requirements
You will need one or more Numeric format variables in your data, either in a loaded data set or displayed numeric data in a table.
Method
- From the toolbar, go to Visualization
> Distributions > Violin from the toolbar.
- Click on the page to place the violin visualization.
- From the object inspector, under Data > Data Source > Variables, select your numeric variable(s).
- Click Calculate and/or ensure Calculate automatically is checked.
Selecting more than one numeric variable or inputting a variable in Data Source > Groups will generate a Grouped Violin Plot.