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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to