title: R: cut off bars that are too long for the y-axis
body: <p>I am making a histogram in R using:</p>
  
  <pre><code>hist(SOME_MATRIX[,4],breaks=500,ylim = c(0,1000))
  </code></pre>
  
  <p>But my bars are much taller than the range I gave to the y-axis (0 - 1000). Is there a way using "hist()" to cut off the bars at a maximum value as well?</p>