[R] Plot - specification for grid of x axis

2010-02-02 Thread Trafim Vanishek
Dear all, I have a simple question for which I cannot find the answer. I need to make an easy plot, but for the x axis I need to be able to specify by myself the division of x axis from x[,1] either every single observation, or every 5th, or 10th or 20th x - matrix(data=NA, nrow=100, ncol=2)

Re: [R] Plot - specification for grid of x axis

2010-02-02 Thread Greg Snow
Vanishek Sent: Tuesday, February 02, 2010 8:12 AM To: r-help@r-project.org Subject: [R] Plot - specification for grid of x axis Dear all, I have a simple question for which I cannot find the answer. I need to make an easy plot, but for the x axis I need to be able to specify by myself

Re: [R] Plot - specification for grid of x axis

2010-02-02 Thread Ally
Have a look at ?par and check out the 'xaxp' parameter par(mfrow=c(1,2)) plot(x[,2] ~ x[,1], xaxp=c(0,100,5)) plot(x[,2] ~ x[,1], xaxp=c(0,100,10), cex.axis=0.5) -- View this message in context: http://n4.nabble.com/Plot-specification-for-grid-of-x-axis-tp1460005p1460083.html Sent from the R