title: Boxplot in R how to set xlim
body: <p>I am trying to make a box plot with the following code</p>
  
  <pre><code>boxplot(depy~depx,outline=FALSE,ylim=c(-20,20))
  </code></pre>
  
  <p>which works fine
  <a href="https://i.stack.imgur.com/ZiR94.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZiR94.png" alt="enter image description here"></a></p>
  
  <p>When I try to add a limit for the x axis</p>
  
  <pre><code>boxplot(depy~depx,outline=FALSE,xlim=c(-10,10),ylim=c(-20,20))
  </code></pre>
  
  <p>I get this</p>
  
  <p><a href="https://i.stack.imgur.com/a5SIq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a5SIq.png" alt="enter image description here"></a></p>
  
  <p>which looks like it has a wrong scale and doesn't show the tick marks and axis labels outside the area with the plotted values. </p>
  
  <p>Any help to fix this?</p>