Fixed: [R] Text Labels on plots in R

Danny Ruttle danny at
Wed Apr 3 18:49:38 CEST 2002

Thanks to all those who chipped in to help.
The snippet below solved the problem.


At 08:09 03/04/2002 -0500, Chuck Cleland wrote:
>Danny Ruttle wrote:
> > Is it possible to plot values against strings, i.e. the x axis has people's
> > names and the
> > y axis as values, as shown below:
>mynames <- c("Dave", "Tim", "Ian", "Steve", "Paul")
>y <- runif(5)
>plot(1:5, y, xaxt="n")
>axis(side=1, at=1:5, mynames)
>Hope this helps,

r-help mailing list -- Read
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at

More information about the R-help mailing list