From mboxrd@z Thu Jan 1 00:00:00 1970 From: Graham Smith Subject: Re: [babel] changing size of R graphics in pdf output Date: Tue, 15 Dec 2009 19:51:46 +0000 Message-ID: <2c75873c0912151151h43b17fa6p5bc2542fde7c3b36@mail.gmail.com> References: <2c75873c0912121440w1452f36fjdb41a01cef811354@mail.gmail.com> <87tyvv1wb6.fsf@stats.ox.ac.uk> <2c75873c0912122337l5d6c7625r74effca7bd8b0d88@mail.gmail.com> <2c75873c0912130023m2cee2f1ao534c8525f7fa1eb0@mail.gmail.com> <2c75873c0912130512w1c90b709q97c964086f3e8870@mail.gmail.com> <2c75873c0912130539v2ab18e40m32ed76c17e9ba813@mail.gmail.com> <2c75873c0912130623h922f307ta4e79845ac082387@mail.gmail.com> <87aaxkqcb1.fsf@stats.ox.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NKdR2-0005Do-JI for emacs-orgmode@gnu.org; Tue, 15 Dec 2009 14:51:52 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NKdQz-0005BX-12 for emacs-orgmode@gnu.org; Tue, 15 Dec 2009 14:51:52 -0500 Received: from [199.232.76.173] (port=52080 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NKdQy-0005BU-SQ for emacs-orgmode@gnu.org; Tue, 15 Dec 2009 14:51:48 -0500 Received: from mail-fx0-f225.google.com ([209.85.220.225]:48593) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NKdQy-00025u-Gw for emacs-orgmode@gnu.org; Tue, 15 Dec 2009 14:51:48 -0500 Received: by fxm25 with SMTP id 25so14300fxm.26 for ; Tue, 15 Dec 2009 11:51:46 -0800 (PST) In-Reply-To: <87aaxkqcb1.fsf@stats.ox.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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: =C2=A0 =C2=A0Trial boxplots with babel > #+LABEL: =C2=A0 =C2=A0 =C2=A0fig:trial boxplots > #+ATTR_LaTeX: width=3D5cm > #+srcname:Boxplots Summary > #+begin_src R :session BirdData :file BoxplotSummary.pdf :exports both > =C2=A0Wingcrd <- rnorm(100, 20) ; Tarsus <- rnorm(100, 5) ; > =C2=A0Head <- rnorm(100, 3) ; Wt <- rnorm(100, 40) > =C2=A0boxplot(Wingcrd,Tarsus,Head,Wt,names=3Dc("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