[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Generating plot with org-babel-R

From: Riccardo Romoli
Subject: [O] Generating plot with org-babel-R
Date: Sat, 4 Feb 2012 23:52:28 +0100

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:

#+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)

** 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

#+begin_src R  :file a.png
  y <- rnorm(10)
  plot(x, y)

Same plot with larger dimension:

#+begin_src R  :file b.png :width 800 :height 800
  plot(x, y)

Where do I wrong?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]