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