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

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
25 Oct 2000 21:55:48 +0200


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