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

From: Zhongming Yang <zhongmingyang_at_yahoo.com>
Date: Fri 18 Mar 2005 - 07:08:43 EST


You are right.  

...
print(xyplot(...))
...  

solved the problem.  

Many thanks  

hadley wickham <h.wickham@gmail.com> 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 -0800 (PST), Zhongming Yang wrote:
> 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(), then I can get correct junk.pdf after I close the R.
>
> Any thoughts?
>
> If you really need my codes, I can post. But there are maybe too many things
> going on my codes.
>
>
> Zhongming Yang
                


        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Mar 18 07:10:56 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:51 EST