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)
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
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
3 matches
Mail list logo