From bates at stat.wisc.edu  Thu Jan 22 19:52:00 2004
From: bates at stat.wisc.edu (Douglas Bates)
Date: Thu Jan 22 19:53:53 2004
Subject: [Rd] stem plot problem with the mtcars data (PR#6453)
In-Reply-To: <20040122182210.2993910562@slim.kubism.ku.dk>
References: <20040122182210.2993910562@slim.kubism.ku.dk>
Message-ID: <6ry8rzke9b.fsf@bates4.stat.wisc.edu>

lianglim@stt.msu.edu writes:

> Full_Name: Liming Liang
> Version: 1.8.1
> OS: windows2000 professional
> Submission from: (NULL) (67.172.81.139)
> 
> 
> I was looking at the variable 'mpg' of the data file 'mtcars' and make a stem
> plot, the following is the commend I entered. The stem plot shows the largest
> observation is 32.9 but actually in the data the largest observation is 33.9,
> here might be a problem.
> 
> > data(mtcars)
> > stem(mtcars$mpg)
> 
>   The decimal point is at the |
> 
>   10 | 44
>   12 | 3
>   14 | 3702258
>   16 | 438
>   18 | 17227
>   20 | 00445
>   22 | 88
>   24 | 4
>   26 | 03
>   28 | 
>   30 | 44
>   32 | 49

Actually it is showing the largest value as either 32.9 or 33.9.
Notice that the stem is being incremented by 2, in which case the
leaf can be ambiguous.


[Rd] stem plot problem with the mtcars data (PR#6453)
Douglas Bates