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

From: Jörg Groß <joerg_at_licht-malerei.de>
Date: Sun, 13 Jul 2008 23:40:00 +0200


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_at_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. Received on Sun 13 Jul 2008 - 21:46:06 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 14 Jul 2008 - 02:31:58 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive