[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Generating plot with org-babel-R
From: |
Thomas S. Dye |
Subject: |
Re: [O] Generating plot with org-babel-R |
Date: |
Sat, 04 Feb 2012 13:37:01 -1000 |
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 <address@hidden> 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: address@hidden
> #+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:address@hidden
> #+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
- [O] Generating plot with org-babel-R, Riccardo Romoli, 2012/02/04
- Re: [O] Generating plot with org-babel-R,
Thomas S. Dye <=
- Re: [O] Generating plot with org-babel-R, Riccardo Romoli, 2012/02/05
- Re: [O] Generating plot with org-babel-R, Thomas S. Dye, 2012/02/05
- [O] Updating the Babel section of Worg Was: Generating plot with org-babel-R, Eric Schulte, 2012/02/05
- Re: [O] Updating the Babel section of Worg Was: Generating plot with org-babel-R, Thomas S. Dye, 2012/02/06
- Re: [O] Updating the Babel section of Worg, Eric Schulte, 2012/02/06
- Re: [O] Updating the Babel section of Worg, Thomas S. Dye, 2012/02/07
- Re: [O] Updating the Babel section of Worg, Martyn Jago, 2012/02/07
- Re: [O] Updating the Babel section of Worg, Eric Schulte, 2012/02/08
- Re: [O] Updating the Babel section of Worg, Rainer M Krug, 2012/02/08
- Re: [O] Updating the Babel section of Worg, Eric Schulte, 2012/02/08