I have the code below and it works fine if I print the xyplot but if I
take the print out, then I just get a blank
pdf. The same holds if I just send the plot to the console without the
print ( I get nothing ). My question is whether this is always
the case with xyplot or is there something wrong with my settings ? I am
on linux ( redhat ) and using R.2.5.0. Thanks.
load("stocks.dat")
pdf('temp.pdf', width=10, height=8)
trellis.par.set(superpose.symbol=list(pch=19, cex=0.8)) # filled circles
print(xyplot(value ~ date|group, groups=wt, data=stocks.all, type='o',
layout=c(2,2),
auto.key=list(columns=6), scales=list(x=list(rot=90))))
dev.off()
#=======================================================================
============================================
sessionInfo()
R version 2.5.0 (2007-04-23)
i686-pc-linux-gnu
locale:
C
attached base packages:
[1] "datasets" "utils" "stats" "graphics" "grDevices"
"methods" "base"
other attached packages:
lattice filehash reshape zoo chron MASS
"0.15-8" "1.0" "0.7.4" "1.3-1" "2.3-11" "7.2-33"
--------------------------------------------------------
This is not an offer (or solicitation of an offer) to buy/se...{{dropped}}
______________________________________________
[email protected] 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.