title: How to control plot width in gridExtra?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/13294952/left-align-two-graph-edges-ggplot">left align two graph edges (ggplot)</a>  </p>
  </blockquote>
  
  
  
  <p>I am trying to put two plots produced with <code>ggplot</code> on the same page, top and bottom, so that their widths are the same. The data is from the same time series, x axis being time, so it is important that data points with the same time are not shifted horizontally with respect to each other. I tried <code>grid.arrange</code> from package gridExtra:</p>
  
  <pre><code>grid.arrange(p1, p2)
  </code></pre>
  
  <p>but the plots have different widths due to different widths of y axis labels. I looked at <a href="https://stackoverflow.com/questions/11606441/ggplot2-gridextra-how-to-ensure-geom-bar-in-different-size-plot-grobs-result">this post</a> that deals with similar problem, but I could not apply that information to solve my problem.</p>
  
  <p><img src="https://i.stack.imgur.com/7NuZd.jpg" alt="enter image description here"></p>