title: Call plot() from an R script and get the graph in the output file?
body: <p>I have created an R script that reads certain data from a file, calls the <code>summary()</code> method and then the <code>plot()</code> method. </p>
  
  <p>But when I try to run the R script where the commands below are written, in the output file I get the summary, but not the graph.  </p>
  
  <p>When I run the following instructions in R manually, everything works perfectly, and I get both the summary and the graph.</p>
  
  <p>Is there a way to get the graph in the output file?</p>
  
  <pre><code>m0&lt;-read.csv(file="Myfile", head=FALSE, sep",")
  var_m0&lt;-c(m0$ V3)
  summary(var_m0)
  plot(var_m0)
  </code></pre>
  
  <p>Thanks!</p>