title: How to customize nticks in persp R
body: <p>I am new to R 3D plotting. I basically have a matrix of size 9x3. Here is what I have to plot them:</p>
  
  <pre><code>###loads the above matrix
  d2 &lt;- read.csv("data.csv", header=T, dec=".",sep = " ")
  ###loads x,y,z
  x &lt;- c(2,3,4,5,6,7,8,9,10)
  y &lt;- c(3,4,10)
  z &lt;- as.matrix(d2)
  
  
  persp(x, y, z,
    zlab="Score", ylab = "C", xlab="T",
    theta=40, phi=-5, ylim=c(3,10), xlim=c(2,10), 
    nticks = 5, ticktype = "detailed",  
    col="springgreen", shade=0.5)
  </code></pre>
  
  <p>Everything is fine except that I am not happy with the ticks on the axes. </p>
  
  <p>Is there a way to force the nticks for <code>x</code>, and <code>y</code>, and <code>z</code>? </p>
  
  <p>For example, is there a way to do something like <code>x.nticks=5</code> , <code>y.nticks=2</code>, <code>z.nticks=7</code>?</p>
  
  <p><strong>Edit</strong>: dput(d2) output:</p>
  
  <pre><code>structure(list(X571.4711426 = c(415.0601344, 398.2104115, 392.3533142, 
  389.1941271, 388.099164, 387.919963, 387.8443483, 387.808006, 
  387.8046256), X569.3318221 = c(412.6845238, 396.1001583, 390.6924488, 
  387.7928128, 386.7903531, 386.6250436, 386.549898, 386.5178556, 
  386.5147072), X564.8071975 = c(408.1278631, 392.3859494, 387.5985228, 
  384.9989269, 384.0664302, 383.9174889, 383.8442499, 383.8178535, 
  383.8151726)), .Names = c("X571.4711426", "X569.3318221", "X564.8071975"
  ), class = "data.frame", row.names = c(NA, -9L))
  </code></pre>