[R] hist with relative frequency

Erin Hodgess hodgess at uhddx01.dt.uh.edu
Sat Oct 13 22:45:26 CEST 2001


Dear R People:

Here is yet another histogram question (yahq), please:

When I use the hist() command with
freq=F, I get density on the side.

I would really like to have relative frequency; that is,
Rf = density/(sum(density))

Is there a step that I'm leaving out, please?

thanks!

Sincerely,
Erin
hodgess at uhddx01.dt.uh.edu
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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 mailing list