title: Plotting maps using 'filled.contour'
body: <p>I am plotting a map in R using 'filled.contour()' and I do not understand why this function switches the x,y axis. I have: </p>
  
  <pre><code>x=1:20
  y=1:10
  z=array(seq(1,2000,1),dim=c(length(y),length(x)) )
  filled.contour(x,y,z,plot.title=title(main="Test",xlab="X",ylab="Y")  )
  </code></pre>
  
  <blockquote>
    <p>Error in .filled.contour(x, y, z, levels, col) : dimension mismatch</p>
  </blockquote>
  
  <p>but if I enter:</p>
  
  <pre><code>z=array(seq(1,2000,1),dim=c(length(x),length(y)) )
  </code></pre>
  
  <p>it plots the map correctly.
  All documentation about arrays shows that 'dim' is defined as dim(y,x)
  Am I missing something?</p>