Skip to content

printing from treillis.device

3 messages · Didier Leibovici, Peter Malewski, Brian Ripley

#
Hi,
I was using xyplot 
and had problems in printing (on a postscript file)
when there was 
a session
like 
xyplot(....)
par(new=T)
xyplot(....)

after a print the result is that the ps contains only he last
xyplot!
any obvious things to do?
thanks
Didier
#
On Mon, Jun 25, 2001 at 04:53:17PM +0100, Didier Leibovici wrote:
According to Prof.Ripley it isn't a good idea to copy a trellis.device
to another device (eg printer). See the posting at the r-help
archive.

If you really want that you can

xyplot(...,page=function(i)dev.print(...,file=paste("/tmp/tmp",i,".ps",sep="")))

see ?trellis.args.

btw: Lattice is under development.

Peter
#
On Mon, 25 Jun 2001, Peter Malewski wrote:

            
(Yes, but he is plotting on a postscript device).
I think Didier's probelm is mixing GRZ-style and trellis-style graphics.
That is, par(new=T) does not do what he wants.

If you want to print a Trellis plot (that is what you do), and then add
another you need to use the `more' argument to print.trellis.

That is

print(xyplot(....), more=T)
xyplot(....)

works in the original, and looks like it should work in lattice too.