[R] how to get variables from hist?

Yves Gauvreau cyg at sympatico.ca
Tue Nov 14 14:00:43 CET 2000


hist.vars <- hist(...)

Just assign it, simple enough.

YG

----- Original Message -----
From: "Meriema Belaidouni" <meriema at info.univ-angers.fr>
To: <r-help at lists.R-project.org>
Sent: Tuesday, November 14, 2000 6:33 AM
Subject: [R] how to get variables from hist?


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

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