[R] How to produce this graphic

Duncan Murdoch murdoch at stats.uwo.ca
Wed Jan 4 20:54:31 CET 2006


On 1/4/2006 12:30 PM, Lisa Wang wrote:
> Hello there,
> 
> I would like to produce a plot of x<-c(4,5,6),which is the mean of each
> group and y<-c('groupA','groupB','groupC'). 
> 
> plot (x,y) can not produce any graphics because y is not numerical. 
> 
> What should I do to produce this graphic?

dotchart(x,y) does a nice job.  See ?dotchart for a lot of optional 
arguments to change the look of it.

Duncan Murdoch




More information about the R-help mailing list