Density plot

Display the distribution of continuous numeric data by creating a density plot. This chart is a variation of a histogram that uses kernel smoothing to plot values.

Details

A density plot visualises the distribution of data over a continuous interval or a certain time period. The peaks of a density plot help display where values are concentrated over the interval. An advantage density plots have over histograms is that they're better at determining the distribution shape because they're not affected by the number of bins used (each bar used in a typical histogram).

Output

The example below shows a density plot of sepal length grouped by the flower species.

denskb.png

Parameters

Variable nameRequiredConstraintsDescription
xYesColumn Input. Integer, DecimalNumerical variable upon which the density will be plotted.
groupNoColumn Input. Text, Integer, Boolean, Date, DateTimeCategorical variable upon which grouping will occur.
alphaYesDecimal ranging from 0 to 1Edit the transparency of the output with 0 being completely transparent and 1 being completely opaque.

See Also

Updated on November 2, 2022

Was this article helpful?