From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Slodkowicz Subject: Re: R plots always exported to Rplots.pdf Date: Wed, 22 May 2013 15:21:32 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b34304e58ce7504dd4f4878 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uf9vB-0002t6-Hz for emacs-orgmode@gnu.org; Wed, 22 May 2013 10:21:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uf9v5-0005N9-Eh for emacs-orgmode@gnu.org; Wed, 22 May 2013 10:21:41 -0400 Received: from mx1.ebi.ac.uk ([193.62.197.214]:63456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uf9v5-0005My-4Y for emacs-orgmode@gnu.org; Wed, 22 May 2013 10:21:35 -0400 Received: from mx1.ebi.ac.uk (localhost.localdomain [127.0.0.1]) by localhost (Email Security Appliance) with SMTP id F10F513FC035_19CD46DB for ; Wed, 22 May 2013 14:21:33 +0000 (GMT) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com [209.85.215.48]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (verified OK)) by mx1.ebi.ac.uk (Sophos Email Appliance) with ESMTPSA id 4EB4413FA415_19CD46DF for ; Wed, 22 May 2013 14:21:33 +0000 (GMT) Received: by mail-la0-f48.google.com with SMTP id fs12so2020314lab.21 for ; Wed, 22 May 2013 07:21:32 -0700 (PDT) In-Reply-To: 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: Jay Kerns Cc: Greg Slodkowicz , emacs-orgmode@gnu.org --047d7b34304e58ce7504dd4f4878 Content-Type: text/plain; charset=UTF-8 That solves it, many thanks! - Greg On Wed, May 22, 2013 at 2:38 PM, Jay Kerns wrote: > Hi Greg, > > On Wed, May 22, 2013 at 8:23 AM, Greg Slodkowicz wrote: > > [snip] > > > This is what my code block looks like: > > > > #+NAME: pvals_waw > > #+BEGIN_SRC R :file fig1.png :exports results > > pvals = read.table("waw_data.txt", header=T) > > plot(pvals$pvalue, pvals$length) > > #+END_SRC > > > > Have you tried (something like) this? > > #+BEGIN_SRC R :exports results :results graphics :file fig1.png > > I hope this helps, > > > -- > Jay > -- Greg Slodkowicz PhD student, Nick Goldman group EMBL-EBI --047d7b34304e58ce7504dd4f4878 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
That solves it, many thanks!

- Gr= eg


On Wed, May 22, 2013 at 2:38 PM, Jay Kerns <gjkernsysu@gmail.com= > wrote:
Hi Greg,

On Wed, May 22, 2013 at 8:23 AM, Greg Slodkowicz <gregs@ebi.ac.uk> wrote:

[snip]

> This is what my code block looks like:
>
> #+NAME: pvals_waw
> #+BEGIN_SRC R :file fig1.png :exports results
> pvals =3D read.table("waw_data.txt", header=3DT)
> plot(pvals$pvalue, pvals$length)
> #+END_SRC
>

Have you tried (something like) this?

=C2=A0#+BEGIN_SRC R :exports results :results graphics :file fig1.png

I hope this helps,


--
Jay



--
Greg Slodkowicz
PhD student, Nick Goldman group<= br>EMBL-EBI
--047d7b34304e58ce7504dd4f4878--