[R] question about the tick label.

Liaw, Andy andy_liaw at merck.com
Mon Nov 15 02:01:11 CET 2004

Not sure if this is what you want, but give it a shot anyway:

plot(x, y, xaxt="n")
axis(1, at=x, label=names(x))


> From: Haiyong Xu
> Hello,
> I am a beginner of R. I want to plot the vectors Y vs. X where X has 
> continuous interger values. How can I use the name of each element as 
> the tick label?
> Thanks a lot!
> Haiyong
> ______________________________________________
> 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

More information about the R-help mailing list