From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Tait Subject: Re: Beginning R plot export Date: Wed, 11 May 2011 18:26:25 +0100 Message-ID: References: <7282.1305071291@alphaville.americas.hpqcorp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKDB6-0000tX-FO for emacs-orgmode@gnu.org; Wed, 11 May 2011 13:26:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKDB5-0007lc-Ef for emacs-orgmode@gnu.org; Wed, 11 May 2011 13:26:28 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:41313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKDB5-0007lU-AH for emacs-orgmode@gnu.org; Wed, 11 May 2011 13:26:27 -0400 Received: by ewy9 with SMTP id 9so253765ewy.0 for ; Wed, 11 May 2011 10:26:26 -0700 (PDT) In-Reply-To: <7282.1305071291@alphaville.americas.hpqcorp.net> 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: nicholas.dokos@hp.com Cc: emacs-orgmode Thank-you! I now have a little plot in my PDF! John On 5/11/11, Nick Dokos wrote: > John Tait wrote: > >> Hi >> >> Do I need to do extra configuration to get R plot output in LaTeX exports? >> >> Using the simplest code block: >> >> #+SRCNAME: graph >> #+BEGIN_SRC R :exports both >> x=c(1,2) >> y=c(2,4) >> plot(x,y) >> x >> #+END_SRC >> >> The numbers "1 2" appear in the LaTeX output, indicating that R is >> running. The plot doesn't appear though. What am I missing? >> > > The following works for me: > > --8<---------------cut here---------------start------------->8--- > #+SRCNAME: graph > #+BEGIN_SRC R :exports both :results graphics :file foo.png > x=c(1,2) > y=c(2,4) > plot(x,y) > #+END_SRC > --8<---------------cut here---------------end--------------->8--- > > Nick >