Its a FAQ: http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-do-lattice_002ftrellis-graphics-not-work_003f
On Sat, Sep 6, 2008 at 9:47 PM, Nathan Teuscher <[EMAIL PROTECTED]> wrote: > I have the following code that when executed from the command line > works properly and produces a proper PDF. When the script is executed, > the PDF produced is considered corrupt. I am using R 2.7.2 on Mac OSX > 10.5.4. Thank you in advance for the help! > > library(lattice) > pdf(file="CLDiag2.pdf") > xyplot( > CL ~ HT + WT + AGE + CREA + SEX, > data=data2, > outer=TRUE, > scales=list(x=list(relation="free")), > panel=function(...){ > panel.loess(..., col="red") > panel.xyplot(..., pch=".") > } > ) > dev.off() > > > Nathan Teuscher > [EMAIL PROTECTED] > > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.