[R] lattice graphics empty in Sweave

Fernando Henrique Ferraz P. da Rosa feferraz at ime.usp.br
Fri Dec 10 11:09:06 CET 2004


Thomas Petzoldt writes:
> === lattice.Rnw======================================================
> \documentclass[a4paper, dvips]{article}
> \begin{document}
> 
> <<fig=TRUE>>=
>   library(lattice)
>   data(iris)
>   xyplot(Sepal.Length~Sepal.Width|Species, data=iris)
> @
> 
> \end{document}
> =====================================================================
> 

        This is addressed in Sweave's and R's FAQ.

http://www.ci.tuwien.ac.at/~leisch/Sweave/FAQ.html#x1-8000A.6
http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-do-lattice_002ftrellis-graphics-not-work_003f



--
Fernando Henrique Ferraz P. da Rosa
http://www.ime.usp.br/~feferraz




More information about the R-help mailing list