[Rd] Bug in stem? (PR#617)

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
26 Jul 2000 12:45:28 +0200


dtrenkler@nts6.oec.uni-osnabrueck.de writes:

> "b" <- c(-5.5, -4, -2.3, -1.5, -1, -0.5, -0.41, -0.33, -0.29, 
>     -0.26, -0.2, -0.2, -0.2, -0.2, -0.11, -0.091, -0.059, 0.067, 
>     0.13, 0.15, 0.19, 0.22, 0.25, 0.26, 0.27, 0.27, 0.32, 0.38, 
>     0.43, 0.48, 0.67, 1, 1.2, 5, 8)
> 
> stem(b)
> 
>   -4 | 50
>   -2 | 3
>   -0 | 50543332222111
>    0 | 1112233333445702
>    2 | 
>    4 | 0
>    6 | 
>    8 | 0
> 
> Note that -5.5 isn't correctly positioned. 

I don't see the problem: the -4 row represents -4.x and -5.x, the
latter first since they are smaller. The display is generally
ambiguous since you get exactly the same value if you replace b[2]
with -5, but that seems to be a generic problem, just like the fact
that you cannot see whether the lone zeroes represent 4 and 7 or 5 and
8.

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