Hi everybody, well, I definitely don't understand anything. Why the hist function with freq=FALSE gives such a strange result??? R <- c(-1.10, 0.79, -1.17, -0.53, -0.26, -0.22, 0.29, -0.26, -0.26, 0.39) hist(R, freq=FALSE, breaks=10) Thanks everybody [[alternative HTML version deleted]]
Trafim <rdapamoga at gmail.com> wrote> >well, I definitely don't understand anything. >Why the hist function with freq=FALSE gives such a strange result??? > >R <- c(-1.10, 0.79, -1.17, -0.53, -0.26, -0.22, 0.29, -0.26, -0.26, 0.39) >hist(R, freq=FALSE, breaks=10) >The total AREA has to equal 1, which does not mean that the highest height has to be less than 1. It looks like each of your bars is about .2 wide; area = height*width, so .... that high one in the middle has area of about 2*.2 = .4 HTH Peter Peter L. Flom, PhD Statistical Consultant Website: www DOT peterflomconsulting DOT com Writing; http://www.associatedcontent.com/user/582880/peter_flom.html Twitter: @peterflom
Y-axis in your code is ``Counts'' irrelevant to probabilities. Guo-Hao Huang -------------------------------------------------- From: "Trafim" <rdapamoga at gmail.com> Sent: Wednesday, December 02, 2009 7:35 PM To: <r-help at r-project.org> Subject: [R] Histogram probabilities >1 ????!!! Hi everybody, well, I definitely don't understand anything. Why the hist function with freq=FALSE gives such a strange result??? R <- c(-1.10, 0.79, -1.17, -0.53, -0.26, -0.22, 0.29, -0.26, -0.26, 0.39) hist(R, freq=FALSE, breaks=10) Thanks everybody [[alternative HTML version deleted]] ______________________________________________ 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.