<div dir="ltr"><div>I&#39;m completely new to R.</div><div><br></div><div>I&#39;ve started working with a project that creates plots using the ggplot package -- so by default it creates grid objects, rather than writing to files.  <br></div><div><br></div><div>In rmarkdown/rstudio, I can write something like this in a SOMEFILE.Rmd : <br></div><div><br></div><div>```<br></div><div>install_github(&#39;eeholmes/CoV19&#39;)</div><div>library(CoV19)<br>getdata();<br>plot4(world, &#39;Ontario Canada&#39;) <br>plot2(world, &#39;Italy&#39;) <br></div><div>plot4(states, &quot;WA&quot;)<br></div><div>```</div><div><br></div><div>I sort of love how the rmarkdown package will just create all 3 of those plots, save them to auto-named files, and render to HTML.  In RStudio, running just that block will also create all three blocks and display them in the editor.  <br></div><div><br></div><div>By contrast, creating a series of many plots in org is fairly tedious.  I have to name the plot individually &amp; put each function call in its own src block. Is there any way to mimic the behaviour of rmarkdown instead? I odn&#39;t understand babel or R enough to really even see how something like that could be implemented, but I&#39;d appreciate some pointers.  Thank you!</div><div><br></div></div>