Skip to content
Prev 254946 / 398498 Next

ggplot2: "ndensity" and "density" parameters

Hello,

if I want to compare the distributions of two datasets using ggplots,
how should I choose the density type?
More exactly, what assumptions and are behind the "ndensity" and
"density" parameters? And when should they be used?

See http://had.co.nz/ggplot2/stat_bin.html

While I understand that one is scaled and the other one is not, I do
not understand which one I should rely on. The distributions look very
different when I try both alternatives.


Thanks