title: How to save plot generated by pairs.panels from R's psych library
body: <p>I'm using R's psych library and I'm plotting correlation pairs in R.</p>
  
  <p>I would like to save the plot generated by this function and export it, in word document for example using ReporteRs but I can't do that. This question have been already discussed <a href="https://stackoverflow.com/questions/33819676/how-to-save-plot-generated-by-pairs-panels-from-rs-psych-library-in-jupyter">here</a>.</p>
  
  <p>As I dig a bit into why I was failing to export it I realized that writing this in R:</p>
  
  <pre><code>plot &lt;- pairs.panel(...)
  </code></pre>
  
  <p>was giving me when printing plot  :<code>NULL</code></p>
  
  <p>So it appears that whatever is the object generated by pairs.panels it can be stored in a variable or be re-used to be exported in a report.</p>
  
  <p>As a workaroung I am using png() to store the plot in a image, and then import the image and inserting it in the report... It is inefficient and much slower so any workaround would be helpful
  Thanks,</p>