[R] A question on histogram - area much less than 1
rolf.turner at xtra.co.nz
Mon Mar 12 09:52:33 CET 2012
On 12/03/12 21:44, jpm miao wrote:
> Thanks very much for your kind response. Yes, if I multiply by the
> width "35", the area should be equal to one.
> How can I plot the probability bars rather than density bars? That
> is, I would like the height of the first bar to be 0.279, which is the
> probability that the variable falls between 0 and 35.
If you want probabilities rather than densities you should be using
TBL <- table(Y1)
More information about the R-help