[R] multiple lattice-pages (development package!)...

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Jun 1 16:16:24 CEST 2001


On Fri, 1 Jun 2001, Peter Malewski wrote:

> One Question: if I make a lattice-plot  (beware: under development!) with
> a special layout e.g. c(2,2,4):
>
> p1 <- xyplot(y~x|id,data=data,layout=c(2,2,3))
>
> is there a way to print.trellis e.g. the second page of the trellis
> object "p1"?
>
> print.trellis(p1,page=2) #!wrong!
>
>
> I want this to automatically dev.print the pages (no, I don't want multiple

That is *not* a good idea.  Trellis plots should have defaults which
depend on the device (I don't think lattice does yet) and so should not be
copied between devices as dev.print does.  Rather, just print to
the device you want to use, or print multiply to multiple devices.

As just one example, trellis uses cyan on grey on a screen, and blue (I
think) on white on a paper device.

> postscript pages). If this isn't possible I'll do the old trick
> with a for-loop...

There is no way to do this in Trellis, at least.

-- 
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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list