How are you executing the script? Quite possibly FAQ Q7.22 applies (it
will it you use source(), for example).
On Sat, 6 Sep 2008, Nathan Teuscher 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.
--
Brian D. Ripley, [EMAIL PROTECTED]
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
______________________________________________
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.