[R] stem and leaf plot: how to edit the stem-values

Jörg Groß joerg at licht-malerei.de
Sun Jul 13 23:40:00 CEST 2008


Hi,

I would like to make a stem and leaf plot and I want to edit the  
category-names.

So, by doing this:

 > x <- c(1,2,2,3,3,3,3,2,2,1)
 > stem(x)

I get:

   1 | 00
   1 |
   2 | 0000
   2 |
   3 | 0000

First Question: Why do I get gaps between the categories?
(like in line 2 and line 4)

And second: How can I edit the categories so that I can create  
something like that:


   category A | 00
   category B | 0000
   category C | 0000



More information about the R-help mailing list