emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Riccardo Romoli <ric.romoli@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Generating plot with org-babel-R
Date: Sat, 4 Feb 2012 23:52:28 +0100	[thread overview]
Message-ID: <CAHiM-bNVuU-eMAMn_1wjW8O9jBcoi5woCs81dhPLwt-p5KfFfw@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 849 bytes --]

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: 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)

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


[-- Attachment #2: Type: text/html, Size: 963 bytes --]

             reply	other threads:[~2012-02-04 22:52 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-04 22:52 Riccardo Romoli [this message]
2012-02-04 23:37 ` Generating plot with org-babel-R Thomas S. Dye
2012-02-05 11:08   ` Riccardo Romoli
2012-02-05 16:45     ` Thomas S. Dye
2012-02-05 19:29       ` Updating the Babel section of Worg Was: " Eric Schulte
2012-02-06  5:43         ` Thomas S. Dye
2012-02-06 21:20           ` Updating the Babel section of Worg Eric Schulte
2012-02-08  0:01             ` Thomas S. Dye
2012-02-08  1:04               ` Martyn Jago
2012-02-08 14:21                 ` Eric Schulte
2012-02-08 14:44                   ` Rainer M Krug
2012-02-08 15:27                     ` Eric Schulte
2012-02-08 14:14               ` Eric Schulte
2012-02-09 17:20                 ` Thomas S. Dye
2012-02-18 21:53                   ` Eric Schulte
2012-02-08 15:41               ` John Hendy
2012-02-06 21:12       ` Generating plot with org-babel-R Riccardo Romoli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHiM-bNVuU-eMAMn_1wjW8O9jBcoi5woCs81dhPLwt-p5KfFfw@mail.gmail.com \
    --to=ric.romoli@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).