Lisa Wang asks...> Subject: [R] How to produce this graphic
>
> 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?
>
One possibility:
x <- c(4,5,6)
plot(x, axes=F)
axis(1, c(1:3), labels=y)
or see ?bar.plot
-Eric
>
> Thank you in advance
>
> Lisa Wang
> Princess Margaret Hospital
> Toronto,Ca
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-
> guide.html
This email message, including any attachments, is for the so...{{dropped}}