title: How to print R graphics to multiple pages of a PDF and multiple PDFs?
body: <p>I know that </p>
  
  <pre><code> pdf("myOut.pdf")
  </code></pre>
  
  <p>will print to a PDF in R. What if I want to</p>
  
  <ol>
  <li><p>Make a loop that prints subsequent graphs on new pages of a PDF file (appending to the end)?</p></li>
  <li><p>Make a loop that prints subsequent graphs to new PDF files (one graph per file)?</p></li>
  </ol>