Hi... I'm still a beginner in R. While doing some curve-fitting with a raw data set of length 22,000, here is what I had:
> hist(y,col="red") gives me the frequency histogram, 13 total rectangles, highest is near 5000. Now > hist(y,prob=TRUE,col="red",ylim=c(0,1.5)) gives me the density (probability?) histogram, same number f rectangles, but the highest rectangle is obviously higher than 1, how can this be?!!! And it gets worse, if I use the 'breaks' option, when I add 'breaks=1000', many of the rectangles were higher than 2. What am I missing here? Thanks. P.S. I had to post this thread via email as it got rejected as I posted it from Nabble, reason was "Message rejected by filter rule match" [[alternative HTML version deleted]] ______________________________________________ R-help@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.