title: Automatically adjust large plots to fit page pdf output from rmarkdown
body: <p>I am having issues when knitting my rmarkdown file to PDF with large plots. The plots get cut when producing the PDF file.</p>
  
  <p>The problem is that I can't find a way to automatically adjust the height and width of all the plots. As I am writing a very large report, I have several plots like this, thus adjusting them separately (through fig.width and fig.height) is out of question.</p>
  
  <p>Is there any package/command that I should use in my YAML or preamble.tex file?</p>
  
  <p>Minimal reproducible example:</p>
  
  <pre><code>---
  output: pdf_document
  ---
  
  ## Large Plot
  
  ```{r}
  library(meta)
  
  data(Fleiss93)
  
  ##
  m &lt;- metabin(event.e, n.e, event.c, n.c,
                data = Fleiss93, studlab = study,
                sm = "RR", method = "I")
  
  forest(m)
  ```
  </code></pre>