From: Riccardo Romoli <ric.romoli@gmail.com>
To: "Thomas S. Dye" <tsd@tsdye.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Generating plot with org-babel-R
Date: Mon, 6 Feb 2012 22:12:31 +0100 [thread overview]
Message-ID: <CAHiM-bOY9=9vZj+FXaw8bPqm2tZ-ahO2NpOi_2Ce2AHNWqBfnA@mail.gmail.com> (raw)
In-Reply-To: <m1ty35z0sv.fsf@tsdye.com>
[-- Attachment #1: Type: text/plain, Size: 6233 bytes --]
Hi Thomas,
thanks a lot for your help!! Using the JSS and the org manual I solved all
my problem (....at least for now!! :))
Best
Riccardo
2012/2/5 Thomas S. Dye <tsd@tsdye.com>
> Hi Riccardo,
>
> Thanks for the URL. Org mode has evolved since this article was
> written. It should probably be revised or taken off Worg. I've copied
> Eric Schulte, who is better able than me to determine the correct course
> of action here.
>
> In the meantime, an up-to-date description of how Org mode can be used
> to write literate programs has appeared in the Journal of Statistical
> Software. You can find it here: http://www.jstatsoft.org/v46/i03
>
> Perhaps you could use the examples in the JSS article to get started?
> If these don't work for you, or if they raise questions that are difficult
> to answer, please do come back to the list with your queries.
>
> All the best,
> Tom
>
> Riccardo Romoli <ric.romoli@gmail.com> writes:
>
> > Hi, this is the URL:
> >
> >
> http://orgmode.org/worg/org-contrib/babel/how-to-use-Org-Babel-for-R.html
> >
> > Best
> > R
> >
> > 2012/2/5 Thomas S. Dye <tsd@tsdye.com>
> >
> >> 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 <ric.romoli@gmail.com> 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
> >>
> > Hi, this is the URL:
> http://orgmode.org/worg/org-contrib/babel/how-to-use-Org-Babel-for-R.htmlBestR
> > 2012/2/5 Thomas S. Dye <span dir="ltr"><mailto:tsd@tsdye.com></span>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 <mailto:ric.romoli@gmail.com> 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: 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?
> >>
> >> 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: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
> >
> > <span class="HOEnZb">--
> > Thomas S. Dye
> > http://www.tsdye.com
> > </span>
>
> --
> Thomas S. Dye
> http://www.tsdye.com
>
[-- Attachment #2: Type: text/html, Size: 9503 bytes --]
prev parent reply other threads:[~2012-02-06 21:12 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-04 22:52 Generating plot with org-babel-R Riccardo Romoli
2012-02-04 23:37 ` 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 ` Riccardo Romoli [this message]
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAHiM-bOY9=9vZj+FXaw8bPqm2tZ-ahO2NpOi_2Ce2AHNWqBfnA@mail.gmail.com' \
--to=ric.romoli@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=tsd@tsdye.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.