title: Arranging multiple ggplot2 plots
body: <p>I am trying to create a lot of plots (simple x-y bar graphs) that I would like to display in the form of a grid. When I use the gridExtra package's grid.arrange, as the number of plots grow, each individual plot shrinks. Is there a way to create the plot canvas so that it spans over multiple pages without shrinking each individual plot? </p>
  
  <p>A simple example from gridExtra:</p>
  
  <pre><code>require(ggplot2)
  require(gridExtra)
  plots = lapply(1:50, function(.x) qplot(1:10,rnorm(10),main=paste("plot",.x)))
  do.call(grid.arrange,  plots)
  </code></pre>
  
  <p>The above code generates 50 plots but they get shrunk to fit the canvas. Is there a way to avoid that? i.e., make them span over multiple pages and each page will have about say 9 or so plots? I am ok with PNG or PDF file formats. </p>
  
  <p>Before trying grid.arrange, I played around with the code sample from this site: <a href="http://gettinggeneticsdone.blogspot.com/2010/03/arrange-multiple-ggplot2-plots-in-same.html" rel="nofollow">http://gettinggeneticsdone.blogspot.com/2010/03/arrange-multiple-ggplot2-plots-in-same.html</a> and ran into the same issue. </p>
  
  <p>I have not yet tried combining the different data frames into one giant data frame with a plot identifier. Then I was thinking of faceting with the plot identifier but I am not sure if it will also have the same issue of shrinking each plot. </p>
  
  <p>Hope my question is clear... </p>
  
  <p>Thanks,
  -e</p>