I find it useful to assign the histogram output to a variable and then manipulate it myself:
For Example: x=hist(R, freq=FALSE, breaks=10) str(x) x$counts/sum(x$counts) On Wed, Dec 2, 2009 at 5:52 AM, <guohao.hu...@gmail.com> wrote: > Y-axis in your code is ``Counts'' irrelevant to probabilities. > > > Guo-Hao Huang > > > -------------------------------------------------- > From: "Trafim" <rdapam...@gmail.com> > Sent: Wednesday, December 02, 2009 7:35 PM > To: <r-help@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@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. > > ______________________________________________ > 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. > [[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.