[R] Problem with histogram

kjetil halvorsen kjetilh at umsanet.edu.bo
Tue Jun 18 18:59:21 CEST 2002


OK <- mydata <= 10
truehist(mydata[OK])

Kjetil Halvorsen

VBMorozov at lbl.gov wrote:
> 
> Hi Everyone
> I have 1dim array of data, which spans, say from 0 to 60. I would like
> to histogram that data only in the range of 0 to 10. How do I do that?
> Something like
> truehist(data,breaks=c(0:10)) returns an error message " breaks do not
> cover tha data"
> 
> Please help.
> 
> Thank you,
> Vlad.
> 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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