title: How to move the vertical color strip legend in image.plot
body: <p>Using <code>image.plot</code> from <code>fields</code> in R, I need to move the vertical color legend to the right a bit in order to accommodate a second y axis on the right hand side of the plot. Here is a reproducible example of what I'm talking about:</p>
  
  <pre><code>x &lt;- seq(0, 1, 0.1)
  y &lt;- x
  n &lt;- length(x)
  z &lt;- matrix(runif(n^2), n, n)
  xyzlist &lt;- list(x, y, z)
  image.plot(x,y,z)
  yaxis2 &lt;- y^2
  axis(4, at = y, labels = yaxis2)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/PLm9J.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PLm9J.png" alt="pic"></a></p>
  
  <p>So you see how the new axis labels crash into the legend. How to move the legend over so that it doesn't crash into the new axis labels?</p>