From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell Adams Subject: Re: babel: textual output and graphic results Date: Fri, 24 Jun 2011 13:46:52 -0500 Message-ID: <20110624184652.GE7163@x201> References: <87y60rpmjc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QaBOc-0000Lj-Nm for emacs-orgmode@gnu.org; Fri, 24 Jun 2011 14:46:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QaBOa-00032m-Sf for emacs-orgmode@gnu.org; Fri, 24 Jun 2011 14:46:26 -0400 Received: from jack.asmallorange.com ([74.52.119.82]:48465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QaBOa-000311-JC for emacs-orgmode@gnu.org; Fri, 24 Jun 2011 14:46:24 -0400 Received: from mcb2536d0.tmodns.net ([208.54.37.203] helo=localhost) by jack.asmallorange.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1QaBOT-001csa-HJ for emacs-orgmode@gnu.org; Fri, 24 Jun 2011 14:46:18 -0400 Content-Disposition: inline In-Reply-To: <87y60rpmjc.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Eythan, This sounds similar to something I'd already done on Worg, ie: dual format returns in R. The first example (RBabelExample) is really R outputting to PNG for viewing inline in emacs with inline-images, and PDF for inclusion into Latex. Maybe you can adapt it to return your text, and graph separately. http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.html Enjoy. On Fri, Jun 24, 2011 at 06:10:47AM -0400, Eythan Weg wrote: > > Hi, > > How could I effect the plot saved in a file and the output produced > shown in the buffer by using a single execution of R in the following > snippet? > > #+begin_src R :results output :session > print(seq(1,10)) > plot(seq(1,10)) > #+end_src > > Thank you. > Eythan > > ------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3