title: How to move plot in R
body: <p>I want to plot a shapefile and add a colorbar beside. I added the coloarbar by the following code.</p>
  
  <pre><code>  image.plot(legend.only = TRUE, zlim = c(0, 1000),
           col = colorbar, nlevel = 4, horizontal = FALSE, legend.shrink = 0.7)
  </code></pre>
  
  <p>My problem is like the figure below, the colorbar interacts with the plot. </p>
  
  <p><a href="https://i.stack.imgur.com/9FTRb.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9FTRb.jpg" alt="enter image description here"></a></p>
  
  <p>Then I found some solution to move the colorbar by </p>
  
  <pre><code>image.plot(legend.only = TRUE, zlim = c(0, 1000),
           col = colorbar, nlevel = 4, horizontal = FALSE, legend.shrink = 0.7, smallplot = c(0.95, 0.99, 0.3, 0.7))
  </code></pre>
  
  <p>But now it becomes this, right now I cannot even see the numbers.</p>
  
  <p><a href="https://i.stack.imgur.com/90lot.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/90lot.png" alt="enter image description here"></a></p>
  
  <p>Is there any way to move the plot a little left, so that there is some place for the colorbar? Or is there any way to expand the drawing panel to place the colorbar? Thank you.</p>