From p.dalgaard@biostat.ku.dk  Wed Oct 25 20:55:48 2000
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 25 Oct 2000 21:55:48 +0200
Subject: [Rd] problem with "breaks" in histogram (PR#710)
In-Reply-To: mcw@ln.nimh.nih.gov's message of "Wed, 25 Oct 2000 20:49:20 +0200 (MET DST)"
References: <200010251849.UAA25821@pubhealth.ku.dk>
Message-ID: <x28zrc3dbv.fsf@blueberry.kubism.ku.dk>

mcw@ln.nimh.nih.gov writes:

> I've come across a glitch in hist.  I can reproduce it on linux for Intel, linux
> for
> PPC, and Irix 6.5.
> 
> t1 <- c(41, 42, 42, 43, 43, 43, 44, 44, 45, 46)
> hist(t1, breaks = 10)    (OK)
> hist(t1/50, breaks = 10)
> 	Error in hist.defauilt(t1/50, breaks = 10):
> 	        some 'x' not counted; maybe breaks do not span range of x
> 
...
> Maybe some sort of rounding of the breaks is in order, but it would need to
> take
> into account the actual size of the numbers you're dealing with.
> 
> I hope this report has enough information.  If not, please let me know what
> else I can provide.  Thanks for the terrific software.

This has been reported before (in the guise of "pretty(x) does not
cover range(x)" or something close to that) and is already fixed in
the development sources.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] problem with "breaks" in histogram (PR#710)
Peter Dalgaard BSA