Fixed: [R] Text Labels on plots in R

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


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

regards
Danny

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:
>
>Danny:
>
>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,
>
>Chuck

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