[R] Corrupted PDF files

Gabor Grothendieck ggrothendieck at gmail.com
Sun Sep 7 06:11:57 CEST 2008


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 <nathan at tmemo.net> 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
> nathan at tmemo.net
>
>
>
>
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>



More information about the R-help mailing list