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
nathan@tmemo.net





	[[alternative HTML version deleted]]

