Skip to content
Prev 275667 / 398506 Next

minimizing device-dependent code in graphics scripts

On 27/10/2011 10:13 AM, Michael Friendly wrote:
I use Sweave, more or less as you describe at the top:  I fiddle with 
the graphs on screen first, then when they're fine, I put the code into 
the document.  Mostly the documents use PDF figures, but it's a global 
change at the top if I want something else.  Since all the fiddling is done
on screen, I don't have the issue of Sweave overhead being a problem 
during development (and it's generally pretty low overhead, as long
as I don't put long computations into the documents).

But if I wanted to avoid device calls in scripts, I'd probably do what 
you did below.

Duncan Murdoch