[R] dot chart adding group labels....HELP

From: David Lyon <david_lyon3_at_yahoo.com>
Date: Mon, 28 Feb 2011 09:13:06 -0800 (PST)


HI everyone

Does anayone know how to add group labels to dot charts
>From the R code below

a<-read.table("test2", sep="\t", header=TRUE) dotchart(as.matrix(t()), main="test")

it generates from the datafile input below,

file test2 containing:

A	B	C	D	E
1	1	1	1	0.2068594
1	0.2386699	1	1	0.3959740
1	0.3965243	1	1	1.0000000
1	1.0000000	1	1	0.3329179
1	1.0000000	1	1	0.4873605


It gives by default the group labels "1","2","3","4" and "5"

How do I change the group labels from the default "1","2","3","4" and "5" to something more useful say "place1","place2", "place3", "place4", "place5"

A BIG thanks in advance!



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 28 Feb 2011 - 18:21:20 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 28 Feb 2011 - 20:40:17 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