[R] printing lattice plots

Claudia Tebaldi tebaldi at rap.ucar.edu
Mon Aug 13 20:51:27 CEST 2001


Hi

I'm trying to print several plots to a multi-page postscript file. 
Some plots are output of basic commands, some are produced by "trellis" 
commands (from the package lattice). 
Right now I'm not able to get a straightforward black and white color
scheme for the latter kind: when I open the postscript file the "trellis"
plots are invisible, or parts of them are (usually the bounding
box/axes/axes marks). 

Here is a sample set of lines:

postscript(file="pix1.ps")
par(mfrow=c(2,2))
plot(X,Y)
plot(X1,Y1)
plot(X2,Y2)

par(mfrow=c(1,1))

bwplot(cut(X)~Y)
bwplot(cut(X1)~Y1)

dev.off()

I've tried changing the trellis.settings$...$col items to "black"
or specifying trellis.device(color=FALSE,device="postscript"). No luck. 
On a related note, is there a way to have multiple trellis plots on a same
page? 

thanks in advance

c



-------------------------------------------------------------------------
claudia tebaldi                                  NCAR  RAP
project scientist                                P.O. Box 3000
(303) 497-2830                                   Boulder, CO 80307
--------------------------------------------------------------------------





-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list