title: How to get contour lines AND axis labels in a filled contour plot in R
body: <p>I have found that I can get either contour lines with incorrect axis labels, or correct axis labels and no contour lines. Here is some code that produces the former:</p>
  
  <pre><code>x&lt;-c(1:10)
  y&lt;-c(1:10)
  z&lt;-matrix(x,nrow=length(x),ncol=length(y))
  filled.contour(z,plot.axes = { contour(z, nlevels = 20, 
                                       drawlabels = T, axes = FALSE, 
                                       frame.plot = FFALSE, add = TRUE);
                   axis(1); axis(2) } )
  </code></pre>
  
  <p>And here is some that produces the latter:</p>
  
  <pre><code>x&lt;-c(1:10)
  y&lt;-c(1:10)
  z&lt;-matrix(x,nrow=length(x),ncol=length(y))
  filled.contour(x,y,z,plot.axes = { contour(z, nlevels = 20, 
                                       drawlabels = T, axes = FALSE, 
                                       frame.plot = FFALSE, add = TRUE);
                   axis(1); axis(2) } )
  </code></pre>
  
  <p>The difference is that I specified the x and y values. Does anybody know how to get both?</p>
  
  <p>Thnaks in advance</p>