title: How to execute .r files to output figures?
body: <p>I really need serious help here. I have been working with R the last month. I have been analyzing data, and plotting many visualizations using ggplot2. I have many <code>.r</code> files which includes data transformations and reading .csv ..etc</p>
  
  <ul>
  <li><p>My instructor wants me to show him my code or at least he want to execute and get all the figures I did. Can i run .r scripts (that includes codes to generate ggplot figures) on my instructor machine? - the good thing, the instructor machine has R too.</p></li>
  </ul>
  
  <p>PS: The result can be as saving image to .JPEG to the instructor's machine.</p>
  
  <p>Your help is much appreciated.</p>
  
  <p>Thanks!</p>