title: "Error in plot.new() : figure margins too large"
body: <p>In R, I met a running error as follows:</p>
  
  <pre><code>&gt; png("p3_sa_para.png", 4, 2)
  &gt; par(mfrow=c(1,2))
  &gt; plot(c(1:10), ylab="Beta",xlab="Iteration")
  Error in plot.new() : figure margins too large
  &gt; plot(c(1:10), ylab="Gamma",xlab="Iteration")
  Error in plot.new() : figure margins too large
  &gt; dev.off()
  X11cairo 
         2 
  </code></pre>
  
  <p>I have already made the image size small to be 4 by 2, why it still complains "figure margins too large"? How can I solve this problem with png?</p>
  
  <p>It is strange that if I change png to pdf, then it will work. I also wonder why?</p>
  
  <p>Thanks and regards!</p>