[R] xYplot() produces empty pdf
    x 
    to_rent_2000 at yahoo.com
       
    Wed May  6 02:50:19 CEST 2009
    
    
  
Hi,
While xYplot(...) below produces an empty pdf file, plot(...) works fine. The same xYplot(...) produces correct output if tried directly in R console. Any suggestions?
Thanks,
sp
# empty pdf
trellis.device("pdf", file="./resid1_lat.pdf");
xYplot(resid(f) ~ fitted(f), method='quantile', nx=20,
       ylim=c(-100,250), xlim = c(-25,150),
       abline=list(h=0, lwd=0.5, lty=2),
       xlab="Fitted Values [lat]",
       ylab="Residuals [lat]")
dev.off();
# non-empty pdf
trellis.device("pdf", file="./resid1_lat.pdf");
plot(resid(f) ~ fitted(f), method='quantile', nx=20,
       ylim=c(-100,250), xlim = c(-25,150),
       abline=list(h=0, lwd=0.5, lty=2),
       xlab="Fitted Values [lat]",
       ylab="Residuals [lat]");
dev.off();
    
    
More information about the R-help
mailing list