title: Wrong axes in raster converted from matrix
body: <p>I have following code:</p>
  
  <pre><code>library(raster)
  library(rasterVis)
  library(rgl)
  
  mz &lt;- matrix(5:7, 2040, 10000)
  z &lt;- raster(mz, xmn=0, ymn=0, xmx=ncol(mz)-1, ymx=nrow(mz)-1)
  plot3D(z)
  decorate3d()
  </code></pre>
  
  <p>This creates following image <a href="https://i.stack.imgur.com/NRiNZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NRiNZ.png" alt="enter image description here"></a></p>
  
  <p>As you can see y axis goes from 0 to 12 instead of 0 to 2040. And X axis goes up to 60, instead of 10000.</p>
  
  <p>What shall I do to get the real values on the axis?</p>
  
  <p>And how do I enforce showing 0 on the Z axis?</p>