From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Ward Subject: Re: Images from R in LaTeX and PDF Date: Fri, 7 Jan 2011 19:50:18 +0000 Message-ID: References: <0485F571-8B66-484C-B77F-5DA9CC97BCD0@tsdye.com> <4D276D3D.402@ccbr.umn.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=47822 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PbIKR-0000cg-Fe for emacs-orgmode@gnu.org; Fri, 07 Jan 2011 14:50:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PbIKQ-0003zU-Bc for emacs-orgmode@gnu.org; Fri, 07 Jan 2011 14:50:27 -0500 Received: from blu0-omc1-s27.blu0.hotmail.com ([65.55.116.38]:11299) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PbIKQ-0003zD-96 for emacs-orgmode@gnu.org; Fri, 07 Jan 2011 14:50:26 -0500 In-Reply-To: <4D276D3D.402@ccbr.umn.edu> 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: Erik Iverson Cc: emacs-orgmode@gnu.org I'm using 7.4, which I think (unless a new versions recently arisen), the latest one, as it was recommended for interacting with R through babel. Thanks, Ben W. On 07/01/2011 19:45, Erik Iverson wrote: > And what version of org are you using? > > Ben Ward wrote: >> >> #+begin_src R :exports both >> full <- read.csv(file="~/Documents/BSc Biology/Third Year/BY6001-40 >> - Dissertation/Data and Analysis/Evolution Results.csv", head=T) >> library("lattice") >> ecoli = subset(full, Bacterium=="E.coli") >> edett = subset(ecoli, Cleaner=="Dettol") >> egarl = subset(ecoli, Cleaner=="Garlic") >> MIC.mod = lm(MIC. ~ 1+Challenge*Cleaner*Replicate, data=ecoli) >> #+end_src >> >> #+begin_src R :file fig1.pdf >> xyplot( MIC.+fitted(MIC.mod) ~ Challenge, data=ecoli, >> xlab="Challenge", ylab="MIC %", auto.key=TRUE) >> #+end_src >> >> #+attr_latex: width=0.6\textwidth wrap placement={h}{0.4\textwidth} >> #+label: fig:one >> #+caption: Linar Plot of real data and fitted model values >> #+results: fig1 >> [[file:fig1.pdf]] >> >> In the case of this code, actually altering size works, but it keeps >> putting the image at the end of my document. Then other images, >> placed with pretty much the same code, give or take for filenames and >> such, won't increace in size, but will alter their movement. >> I'm wondering if using pure latex for my images would be an easier >> solution. >> >> Cheers, >> Ben. >> >> >> On 07/01/2011 18:30, Thomas S. Dye wrote: >>> Aloha Ben, >>> >>> Can you share an example that doesn't work for you? >>> >>> All the best, >>> Tom >>> >>> On Jan 7, 2011, at 7:23 AM, Ben Ward wrote: >>> >>>> Hi All, >>>> >>>> I've been doing some work with babel and R to generate graphs that >>>> I've then been including useing attr latex. >>>> >>>> But when I include images the always appear very very small, even >>>> when I mess about with the width settings of the attr latex line >>>> and remove the options for wrap and such. >>>> >>>> Does anybody else use R with images and org, and could tell me how >>>> they handle including R graphics in their documents? >>>> >>>> Thanks, >>>> Ben. W >>>> >>>> _______________________________________________ >>>> Emacs-orgmode mailing list >>>> Please use `Reply All' to send replies to the list. >>>> Emacs-orgmode@gnu.org >>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >>> >>> >>> >> >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Please use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode > >