emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Graham Smith <myotisone@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [babel] changing size of R graphics in pdf output
Date: Tue, 15 Dec 2009 19:51:46 +0000	[thread overview]
Message-ID: <2c75873c0912151151h43b17fa6p5bc2542fde7c3b36@mail.gmail.com> (raw)
In-Reply-To: <87aaxkqcb1.fsf@stats.ox.ac.uk>

Dan,

> Before running the export, do you have a link to the image *already* in
> your org buffer?
>
> If no, then you should just get one copy of the image.
>
> If yes, then, if the link is positioned in such a way that it will get
> replaced by the output (no intervening lines between end of source block
> and results) then you should get one copy.

I would almost certainly already  have the link as I have been making
minor changes and recompiling , what seems like hundreds of times
trying to sort out how to fix it

> ------------------------------------------------------------------------
> #+options toc:nil
> #+title: R latex graphics
>
> Text before figure.
> #+CAPTION:    Trial boxplots with babel
> #+LABEL:      fig:trial boxplots
> #+ATTR_LaTeX: width=5cm
> #+srcname:Boxplots Summary
> #+begin_src R :session BirdData :file BoxplotSummary.pdf :exports both
>  Wingcrd <- rnorm(100, 20) ; Tarsus <- rnorm(100, 5) ;
>  Head <- rnorm(100, 3) ; Wt <- rnorm(100, 40)
>  boxplot(Wingcrd,Tarsus,Head,Wt,names=c("Wingcrd","Tarsus","Head","Wt"))
> #+end_src
>
> #+results: Boxplots
> [[file:BoxplotSummary.pdf]]
>
> Text after figure.
> ------------------------------------------------------------------------

Thanks for this. It has to be said I am really excited about this
babel and R combination. I often do a few pages of R explanation on a
specific topic for students where I need to combine text and R output,
and this is a brilliant solution for this.

Graham

      reply	other threads:[~2009-12-15 19:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-12 22:40 [babel] changing size of R graphics in pdf output Graham Smith
2009-12-13  1:45 ` Dan Davison
2009-12-13  7:37   ` Graham Smith
2009-12-13  8:23     ` Graham Smith
2009-12-13 13:12       ` Graham Smith
2009-12-13 13:39         ` Graham Smith
2009-12-13 14:23           ` Graham Smith
2009-12-15 19:14             ` Dan Davison
2009-12-15 19:51               ` Graham Smith [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

  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=2c75873c0912151151h43b17fa6p5bc2542fde7c3b36@mail.gmail.com \
    --to=myotisone@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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