From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell Adams Subject: Re: Re: org-babel-R export parameters Date: Mon, 7 Jun 2010 13:51:19 -0500 Message-ID: <20100607185119.GG13859@thinkpad.adamsinfoserv.com> References: <20100606225802.GC13859@thinkpad.adamsinfoserv.com> <87k4qbyc5p.fsf@stats.ox.ac.uk> <20100607080434.GD13859@thinkpad.adamsinfoserv.com> <871vcjp631.fsf@stats.ox.ac.uk> <20100607103100.GE13859@thinkpad.adamsinfoserv.com> <4C0D3D20.7020304@ccbr.umn.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=44771 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OLhQ6-0004zL-43 for emacs-orgmode@gnu.org; Mon, 07 Jun 2010 14:51:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OLhQ4-00038r-RA for emacs-orgmode@gnu.org; Mon, 07 Jun 2010 14:51:33 -0400 Received: from squirtle.drak.net ([72.52.144.201]:48895) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLhQ4-00038c-M7 for emacs-orgmode@gnu.org; Mon, 07 Jun 2010 14:51:32 -0400 Received: from 206.180.155.43.adsl.hal-pc.org ([206.180.155.43] helo=localhost) by squirtle.drak.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1OLhPq-0000D0-OK for emacs-orgmode@gnu.org; Mon, 07 Jun 2010 13:51:19 -0500 Content-Disposition: inline In-Reply-To: <4C0D3D20.7020304@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: emacs-orgmode@gnu.org On Mon, Jun 07, 2010 at 01:40:32PM -0500, Erik Iverson wrote: > You could just make your complex plots functions, and then call your > function in in one line. Or if you're using lattice or ggplot2, create > objects representing the plot, and then plot them in one line. Funny you should mention that, I already did. ;] So my current issue is that it appears that even though I set :export none, the png is still included in my Latex output. Suggestions? ====================================================================== * Heading blah blah blah blah blah blah blah blah blah blah blah blah blah #+BEGIN_SRC R :results file :exports none :var basename="MyFile" doublePlot = function (base, plotFunc) { # basename from org-babel myPng = paste(base,"png",sep=".") myPdf = paste(base,"pdf",sep=".") png(myPng, width = 1024, height = 500) plotFunc() dev.off() pdf(myPdf, paper = 'usr') plotFunc() dev.off() print(myPng) } a = c(1,2,3,4) doublePlot(base=basename, plotFunc=function(){ plot(a) }) #+END_SRC #+results: [[file:MyFile.png]] #+LATEX: \includegraphics[width=\textwidth]{MyFile.pdf} ====================================================================== ------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3