[R] How to produce this graphic

Kort, Eric Eric.Kort at vai.org
Wed Jan 4 20:27:57 CET 2006

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


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

More information about the R-help mailing list