[R] [Fwd: curiousity with hist]
murad at godel.bioc.columbia.edu
Thu Oct 3 21:15:27 CEST 2002
just realized that the bin value is actually the relative frequency
divided by the bin width. sorry for consuming band width.
Alas, is there anyway to make hist() calculate relative frequencies
irrespective of bin width?
Murad Nayal wrote:
> I am rather new to R. in trying to use the hist() command I get behavior
> that is somewhat puzzling me, in short, for a vector 'data' of about
> 2000 elements ranging from -1,1 I do:
> I get a histogram with the y axis ranging from 0.0 -> 6.0 at the highest
> bin. This bin's relative frequency should be 0.6. this bin's raw count
> is 1200 (out of about 2000 observations in the vector 'data'). so this 6
> is not the raw count, probability=relative frequency or percentage. What
> is it? I get the raw counts plotted correctly if I do a
> any help/ideas would be greatly appreciated
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help