[R] Text Labels on plots in R

Thomas Lumley tlumley at u.washington.edu
Wed Apr 3 18:10:30 CEST 2002

On Wed, 3 Apr 2002, David Barron wrote:

> This should do what you want:
> plot(x,y,axes=FALSE)
> axis(1,at=1:5,labels=c("Dave","Tim","Ian","Steve","Paul"))
> axis(2)

Or if x is a factor
(perhaps the only use for the codes() function)

You might also want to look at the dotchart() function.


r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list