From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: Generating plot with org-babel-R Date: Sat, 04 Feb 2012 13:37:01 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtpA6-0004m5-JZ for emacs-orgmode@gnu.org; Sat, 04 Feb 2012 18:36:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RtpA5-0000ej-4p for emacs-orgmode@gnu.org; Sat, 04 Feb 2012 18:36:54 -0500 Received: from oproxy8-pub.bluehost.com ([69.89.22.20]:50078) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RtpA4-0000eb-UP for emacs-orgmode@gnu.org; Sat, 04 Feb 2012 18:36:53 -0500 In-Reply-To: (Riccardo Romoli's message of "Sat, 4 Feb 2012 23:52:28 +0100") 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.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Riccardo Romoli Cc: emacs-orgmode@gnu.org Hi Riccardo, This code appears to be outdated. I don't recall this code on the org site. Could you send a URL? All the best, Tom Riccardo Romoli writes: > Hi, I'm trying to generate some figure with R, into an org session. Firstly > I use the code in the org site. The problem is that the code do not > generate any figure. > > This is the code: > > #+TITLE:Test > #+AUTHOR: Your Name > #+EMAIL: your-email@server.com > #+BABEL: :session *R* :cache yes :results output graphics :exports > both :tangle yes > > * Example of Org-Babel for R Literate Programming > ** R text output > A simple summary. > #+begin_src R > x <- rnorm(10) > summary(x) > #+end_src > > ** R graphics output > Note we use the object =x= generated in previous code block, thanks to > the header option =:session *R*=. The output graphics file is > =a.png=. > > #+begin_src R :file a.png > y <- rnorm(10) > plot(x, y) > #+end_src > > Same plot with larger dimension: > > #+begin_src R :file b.png :width 800 :height 800 > plot(x, y) > #+end_src > > > Where do I wrong? > > Best > Riccardo > Hi, I'm trying to generate some figure with R, into an org session. Firstly I use the code in the org site. The problem is that the code do not generate any figure. This is the code: > #+TITLE:Test > #+AUTHOR: Your Name > #+EMAIL: mailto:your-email@server.com > #+BABEL: :session *R* :cache yes :results output graphics :exports both :tangle yes > > * Example of Org-Babel for R Literate Programming > ** R text output > A simple summary. > #+begin_src R > x <- rnorm(10) > summary(x) > #+end_src > > ** R graphics output > Note we use the object =x= generated in previous code block, thanks to > the header option =:session *R*=. The output graphics file is > =a.png=. > > #+begin_src R :file a.png > y <- rnorm(10) > plot(x, y) > #+end_src > > Same plot with larger dimension: > > #+begin_src R :file b.png :width 800 :height 800 > plot(x, y) > #+end_src > Where do I wrong?BestRiccardo -- Thomas S. Dye http://www.tsdye.com