title: "Error in plot.new() : figure margins too large" in R, is it because too many plots in one figure?
body: <p>I would like to put about 80 plots in a figure, and about 160 plots in a figure. I run the following commands in R terminal:</p>
  
  <pre><code>&gt; par(mfrow=c(10,8)); gelman.plot(output,auto.layout=F,autoburnin=F)
  Error in plot.new() : figure margins too large
  &gt; dev.off()
  null device 
            1 
  &gt; par(mfrow=c(10,16)); plot(output,auto.layout=F)
  Error in plot.new() : figure margins too large
  </code></pre>
  
  <p>Should I change the <code>mar</code> or <code>mai</code> options in <code>par()</code>? But what values do you suggest me to do that?</p>
  
  <p>What if I would like to save each figure into a pdf file? </p>
  
  <pre><code>&gt; pdf('gelman.pdf')
  &gt; par(mfrow=c(10,8)); gelman.plot(output,auto.layout=F,autoburnin=F)
  Error in plot.new() : figure margins too large
  &gt; dev.off()
  </code></pre>
  
  <p>How should I set up then? Thanks!</p>