From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: rmarkdown-like production of multiple plots in org Date: Tue, 31 Mar 2020 15:23:17 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d668c305a22b798c" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:38199) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJMS9-0005QR-Ly for emacs-orgmode@gnu.org; Tue, 31 Mar 2020 15:21:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJMS8-0000GG-Gr for emacs-orgmode@gnu.org; Tue, 31 Mar 2020 15:21:37 -0400 Received: from mail-ot1-x32f.google.com ([2607:f8b0:4864:20::32f]:35240) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jJMS8-0000Fw-9S for emacs-orgmode@gnu.org; Tue, 31 Mar 2020 15:21:36 -0400 Received: by mail-ot1-x32f.google.com with SMTP id v2so18720856oto.2 for ; Tue, 31 Mar 2020 12:21:36 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: Org Mode --000000000000d668c305a22b798c Content-Type: text/plain; charset="UTF-8" I'm completely new to R. I'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. In rmarkdown/rstudio, I can write something like this in a SOMEFILE.Rmd : ``` install_github('eeholmes/CoV19') library(CoV19) getdata(); plot4(world, 'Ontario Canada') plot2(world, 'Italy') plot4(states, "WA") ``` 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. By contrast, creating a series of many plots in org is fairly tedious. I have to name the plot individually & put each function call in its own src block. Is there any way to mimic the behaviour of rmarkdown instead? I odn't understand babel or R enough to really even see how something like that could be implemented, but I'd appreciate some pointers. Thank you! --000000000000d668c305a22b798c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm completely new to R.

I've started working with a project that creates plots using the ggplo= t package -- so by default it creates grid objects, rather than writing to = files.=C2=A0

In rmarkdown/rstudio, I can writ= e something like this in a SOMEFILE.Rmd :

```=
install_github('eeholmes/CoV19')
library(C= oV19)
getdata();
plot4(world, 'Ontario Canada')
plot2(wor= ld, 'Italy')
plot4(states, "WA")
=
```

I sort of love how the rmarkdown package = will just create all 3 of those plots, save them to auto-named files, and r= ender to HTML.=C2=A0 In RStudio, running just that block will also create a= ll three blocks and display them in the editor.=C2=A0

By contrast, creating a series of many plots in org is fairly tedi= ous.=C2=A0 I have to name the plot individually & put each function cal= l in its own src block. Is there any way to mimic the behaviour of rmarkdow= n instead? I odn't understand babel or R enough to really even see how = something like that could be implemented, but I'd appreciate some point= ers.=C2=A0 Thank you!

--000000000000d668c305a22b798c--