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


