emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Erik Iverson <eriki@ccbr.umn.edu>
To: Dan Davison <davison@stats.ox.ac.uk>,
	emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Re: org-babel-R export parameters
Date: Mon, 07 Jun 2010 13:40:32 -0500	[thread overview]
Message-ID: <4C0D3D20.7020304@ccbr.umn.edu> (raw)
In-Reply-To: <20100607103100.GE13859@thinkpad.adamsinfoserv.com>

<snip>
>>
>> #+begin_src R :results file :var basename="myplot"
>>   a <- 1:4
>>   pngfile <- sprintf("%s.png", basename)
>>   pdffile <- sprintf("%s.pdf", basename)
>>   
>>   png(pngfile)
>>   plot(a)
>>   dev.off()
>>   
>>   pdf(pdffile)
>>   plot(a)
>>   dev.off()
>>   
>>   pngfile
>> #+end_src
> 
> I like this better, and I can use dev.copy here too. The issue is a
> plot is rarely one line. Most of my plots are a half page of code
> between the data set, legend, etc.
> 

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.

  reply	other threads:[~2010-06-07 18:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-06 22:58 org-babel-R export parameters Russell Adams
2010-06-06 23:27 ` Dan Davison
2010-06-07  8:04   ` Russell Adams
2010-06-07  9:03     ` Dan Davison
2010-06-07 10:31       ` Russell Adams
2010-06-07 18:40         ` Erik Iverson [this message]
2010-06-07 18:51           ` Russell Adams
2010-06-07 19:44             ` Eric Schulte
2010-06-07 19:56               ` Erik Iverson
2010-06-07 22:28                 ` Eric Schulte
2010-06-07 20:21               ` Russell Adams
2010-06-07 13:36     ` Erik Iverson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C0D3D20.7020304@ccbr.umn.edu \
    --to=eriki@ccbr.umn.edu \
    --cc=davison@stats.ox.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).