A density plot takes a numeric variable to represent a smooth distribution curve over time. The peak of the density plot shows the maximum concentration of numeric data. A density plot is like a histogram, where there is a smooth curve instead of bars. We can draw up to five variables on the same plot for comparison. If we plot more variables, then it will become hefty.
Why do you need it?
The density plot is easy to understand and can compare between two or more variables. It is like a histogram, but unlike a histogram, it doesn’t get affected with several bins on the plot.
What kind of data you can visualize with it?
It is best suited for numeric-related data. Assume you have a dataset of time interval on an axis and its associated frequency on another axis, then density plot is beneficial. It will show which time interval has a maximum frequency, just by looking at the peak.