[Rd] lattice and Sweave

Douglas Bates bates at stat.wisc.edu
Fri Jun 20 00:03:33 MEST 2003

Thomas Lumley <tlumley at u.washington.edu> writes:

> I'm having trouble using lattice and Sweave together.
> An example of the trouble is the chunk
> <<fig=true, eps=false>>=
> library(nlme)
> data(Orthodont)
> plot(Orthodont)
> @

I have a big sign next to my monitor saying 

 When using Sweave you _must_ print a lattice plot.

because I have made this mistake so many times.  In my rush to finish
the slides for a short course that I am teaching today and tomorrow I
forgot this and contacted Deepayan, who is travelling in India right
now, in a panic. He calmly told me "you forgot to print".

It will work if you use


More information about the R-devel mailing list