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? thanks Murad Nayal wrote:> > Hello, > > 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: > > hist(data,probability=TRUE) > > 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 > > hist(data) > > any help/ideas would be greatly appreciated > thanks > Murad-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._