[R] histogram - freq=FALSE - density computation

Jörg Groß joerg at licht-malerei.de
Fri Aug 8 00:55:48 CEST 2008


Hi,

I don't understand what

hist(x, freq=FALSE)

does.


At first I thought it would be just the relative frequencies instead  
of the absolute frequencies,
by just computing "frequencies / n" in every category.

But with a small dataset the y-values (densities) don't sum to one.

Is there a way to get the histogram doing that?
Or what is the idea of this density-computation?


I hope the question is not too stupid...



More information about the R-help mailing list