title: R: How do I put two box plots next to each other, keeping same y-range for both?
body: <p>Let's say I have two data sets, one with y-range [min0:max0] and the other with y-range [min1:max1]. How can put both box plots in one plot next to each other with a sane y-range [min(min0, min1):max(max0, max1)]?</p>
  
  <p>Here's what I tried:</p>
  
  <pre><code>d0 &lt;- matrix(rnorm(15), ncol=3)
  d1 &lt;- matrix(rnorm(15), ncol=3)
  
  par(mfrow = c(1, 2))
  boxplot(d0)
  usr &lt;- par("usr")
  plot.new()
  par(usr = usr)
  boxplot(d1, add = TRUE)
  </code></pre>
  
  <p>But that will only keep the first plots y-range and also squeeze both plots whereas I'd like them to be square.</p>
  
  <p>Any ideas?</p>