[R] how to get variables from hist?

Meriema Belaidouni meriema at info.univ-angers.fr
Tue Nov 14 12:33:05 CET 2000


hello,
my question concerns how to get variables from hist function?
pp is some variable
>hist(pp)     #gives the histogram of pp
>str(hist(pp))    #gives 4 variables  which values are for example
$breaks  :  num[1..18] 5 10 15 20 25 ...
$counts   :  int[1..17] 1215    19381    47721 ...
$ intensities :  num [1..17]   0.00243    0.03876    0.09544 ...
$mids        : num[1..17]   7.5  12.5   17.5  22.5 ...

I want to  plot intensities against mids for example
what I need is to get intensities and mids  as variables to be able to
use plot function.

thank you for help

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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