Try something like: plot(1:5, xaxt="n") axis(side=1, pos=3)
When all else fails, read the help pages (again)... Andy From: Jing Yang > > Dear R-user, > > Does any of you know how to draw x-axis at randomly position? > It looks I could only draw x-axis at the bottom and top of > the plot area (by using function axis). > However, sometimes I need to draw x-axis at randomly > position, for example, in the plot of y~x, I'd like to let > the x-axis go cross y=5. > > Best,Jing > > ______________________________________________ R-help@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