[R] ggplot2: "ndensity" and "density" parameters

From: Jay <josip.2000_at_gmail.com>
Date: Sun, 27 Mar 2011 12:19:43 -0700 (PDT)


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



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sun 27 Mar 2011 - 21:59:35 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 27 Mar 2011 - 22:10:24 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive