On Wed, 3 Dec 2008, Philipp Pagel wrote:

On Tue, Dec 02, 2008 at 02:28:18PM -0800, David Epstein wrote:
Is there a good and concise way of making simultaneous plots that are
identical, but directed to different devices?

I'm writing an R-script that produces a pdf file. I would really like to
check visually whether the pdf file shows what I expect. So I would like the
same commands to produce a plot on screen. At the moment I'm using
cut-and-paste, which is not ideal because any corrections have to be done
twice---very error-prone.

How about dev.copy2pdf ?

I usually keep my pdf viewer (kpdf) open which automatically refrehes
once I re-create the plot. On windows this is a problem, as far
as i know.

Depends on the viewer: GSView (and others based on ghostscript) do allow the file to be updated whilst open: Acrobat Reader does not.

--
Brian D. Ripley,                  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to