title: R levelplot adjust axes
body: <p>I want to plot the probability distribution function (PDF) as a heatmap in R using the levelplot function of the "lattice" package. I implemented PDF as a function and then generated the matrix for the levelplot using two vectors for the value ranges and the outer function.
  I want the axes to display the  My issue is that am not able to add properly spaced tickmarks on the two axes displaying the two actual value ranges instead of the number of columns or rows, respectively.</p>
  
  <pre><code># PDF to plot heatmap
  P_RCAconst &lt;- function(x,tt,D)
    {
      1/sqrt(2*pi*D*tt)*1/x*exp(-(log(x) - 0.5*D*tt)^2/(2*D*tt))
    }
  
  # value ranges &amp; computation of matrix to plot
  tt_log &lt;- seq(-3,3,0.05)
  tt &lt;- exp(tt_log)
  tt &lt;- c(0,tt)
  x &lt;- seq(0,8,0.05)
  z &lt;- outer(x,tt,P_RCAconst, D=1.0)
  z[,1] &lt;- 0
  z[which(x == 1),1] &lt;- 1.5
  z[1,] &lt;- 0.1
  
  # plot heatmap using levelplot
  require("lattice")
  colnames(z) &lt;- round(tt, 2)
  rownames(z) &lt;- x
  levelplot(z, cex.axis=1.5, cex.lab=1.5, col.regions=colorRampPalette(c("blue", "yellow","red", "black")), at=seq(0,1.9,length=200), xlab="x", ylab="time t", main="PDF P(x,t)")
  </code></pre>
  
  <p>Without assigning names to columns and rows I receive the following plot where the tick marks are naturally spaced (as used from other R-functions) but the values are the row &amp; column numbers:
  <img src="https://i.stack.imgur.com/r5O1s.jpg" alt="Without assigning names to columns and rows I receive the following plot where the tick marks are naturally spaced (as used from other R-functions) but the values are the row &amp; column numbers"></p>
  
  <p>With assigning names to columns and rows I receive the following plot where the tick marks are not at all readable but at least correspond to the actual values:</p>
  
  <p><img src="https://i.stack.imgur.com/uCt0o.jpg" alt="With assigning names to columns and rows I receive the following plot where the tick marks are not at all readable but at least correspond to the actual values"></p>
  
  <p>I have spent already too much time on this seemingly trivial issue so I would appreciate very much any help from your side!</p>