Re: [R] how to close trellis.device?

2005-03-17 Thread Zhongming Yang
You are right. ... print(xyplot(...)) ... solved the problem. Many thanks hadley wickham <[EMAIL PROTECTED]> wrote: Are you running them from a function? You probably want to check out 7.22 Why do lattice/trellis graphics not work? in the R faq. Hadley On Thu, 17 Mar 2005 11:37:53 -080

Re: [R] how to close trellis.device?

2005-03-17 Thread Zhongming Yang
Thank you for your post. If I run: trellis.dev(pdf, filename="junk.pdf') plot(c(1:10)) dev.off() I get the correct junk.pdf. But when I try to draw some fancy stuff using xyplot(...), then I just get a junk.pdf of 4kb only, and abode says ".. error, .. it has no page." If I remove dev.off(

Re: [R] how to close trellis.device?

2005-03-17 Thread Uwe Ligges
Zhongming Yang wrote: Dear All: I need draw some figure through trellis.device and save them as pdf files. How can I close trellis.device (something like dev.off() in nonlattice figure)? dev.off() is correct, because trellis.device also starts "regular" devices (with appropriate sttings). Uwe

[R] how to close trellis.device?

2005-03-17 Thread Zhongming Yang
Dear All: I need draw some figure through trellis.device and save them as pdf files. How can I close trellis.device (something like dev.off() in nonlattice figure)? Many thanks Zhongming Yang - [[alternative HTML version deleted]]