[R] lattice layout multiple pages

Prof Brian Ripley ripley at stats.ox.ac.uk
Sun Nov 19 09:01:23 CET 2006


On Sat, 18 Nov 2006, Deepayan Sarkar wrote:

> On 11/18/06, Patrick Giraudoux <patrick.giraudoux at univ-fcomte.fr> wrote:

[...]

>> Also I would like to print those pages to a device (eg using
>> win.metafile(filename = "myfile")), but I wonder how to manage not to
>> make each page file created overwritten by the next one in this context.
>
> Don't know about win.metafile (have you tried it? Does it really
> overwrite previous pages?), but pdf etc have options (described in
> their help page) to produce either a single multi-page files or
> multiple single-page files.

So does win.metafile: the only difference is that the default is the 
clipboard, and that does hold only one page at a time. Try

win.metafile("Rplot%d.emf")

-- 
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



More information about the R-help mailing list