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

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Sun, 13 Jul 2008 21:45:11 -0400

On 13/07/2008 5:40 PM, Jörg Groß wrote:
> Hi,
>
> I would like to make a stem and leaf plot and I want to edit the
> category-names.

If you have a computer you can do much better histograms. But since you have chosen to do this, one way is to edit the underlying C code. It's available in

https://svn.r-project.org/R/src/appl/stem.c

Another way is to save the plot into a file, and manually edit the file.

The best way is to produce the whole thing by hand, using pen and paper, while sitting on a tropical island without access to a computer. I recommend Half Moon Caye,
http://maps.google.com/maps?f=q&hl=en&geocode=&q=half+moon+caye&sll=37.0625,-95.677068&sspn=93.342821,105.292969&ie=UTF8&ll=17.206312,-87.532454&spn=0.05854,0.051413&t=h&z=14

Duncan Murdoch

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



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 Mon 14 Jul 2008 - 01:52:26 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 - 03:31:26 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