This article describes how to create a Bean plot, like this. A Bean Plot is a mirrored density plot, with a rug plot between the densities showing unique values. Similar to a boxplot and histogram, bean plots are used to compare the distributions of different groups.
Requirements
You need a variable containing numeric data, either in a loaded data set or a table.
Method
1. Go to Visualization > Distributions > Bean.
2. Under Inputs > DATA SOURCE > Variables in 'Data' select your numeric variable.
3. In the Groups box, select a grouping variable.
3. Click Calculate and/or ensure Automatic is checked.
If your numeric data is stored in a table rather than a numeric variable, in step 2, use Inputs > DATA SOURCE > Output in 'Pages' and select the appropriate table.
Options
The below options are specific to this chart type, available in the Object Inspector under Chart > APPEARANCE.
Plot vertically Rotates the bean plot by 90 degrees.
Data value color Sets the value of the dashes in the rug.
Bandwidth The relative width of the bandwidth used to compute the density (the smaller the value, the 'bumpier' the plot).
Automatically compute lower bound If selected, the left-side of the plot is set to the lowest value observed in the other data. Otherwise, it is set to be further to the left than this, so as to create a smooth end to the plot.
Acknowledgements
The density is computed using the base R density function and the plot is created using plotly.
Next
How to Create a Grouped Density Plot
Requirements
You need a variable containing numeric data, either in a loaded data set or a table.
Method
1. Go to Visualization > Distributions > Density.
2. Under Inputs > DATA SOURCE > Variables in 'Data' select your numeric variable.
3. Click Calculate and/or ensure Automatic is checked.
If your numeric data is stored in a table rather than a numeric variable, in step 2, use Inputs > DATA SOURCE > Output in 'Pages' and select the appropriate table.
Next
How to Create a Grouped Density Plot