This article describes how to create a Density plot, like this:
Requirements
You need a variable containing numeric data, either in a loaded data set or a table.
Method
1. From the toolbar, go to Visualization > Distributions > Density.
2. From the object inspector , under Data > Data Source > Variables, select your numeric variable. See the caveats if you use variables as the inputs. Otherwise, select an existing output from Data > Data Sources > Data.
3. Click Calculate and/or ensure Calculate automatically is checked.
Additional Notes
There is no option to show the probability density values on this visualization (typically the Y-axis or X-axis, if it is rotated). Since the Y-axis represents density (probability density), and not raw counts, it is hard to interpret and not used. When using density plots, the focus is more on the shape of the distribution, relative likelihood, and area under the curve rather than specific numerical frequency.
Acknowledgements
The density is computed using the base R density function, and the plot is created using plotly.