Skip to content
Back to formatted view

Raw Message

Message-ID: <alpine.LFD.2.00.0812030932500.26351@gannet.stats.ox.ac.uk>
Date: 2008-12-03T09:36:33Z
From: Brian Ripley
Subject: simultaneous plots
In-Reply-To: <20081203090330.GC10989@localhost>

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,                  ripley at stats.ox.ac.uk
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