[S] trellis postscript file from within

sinclair, andrew (asinclair@edfman.co.uk)
Tue, 7 Jul 1998 13:29:00 +0100


I am trying to produce trellis plots as postscript
files from within a loop, with spectacular (& frustrating)
lack of success. Can anyone help ?

e.g.

### does not produce a postscript file (WHY ?!)
for ( i in 1:1) {
postscript(file="test1.ps", print.it=F, onefile=F)
xyplot(rnorm(100) ~ I(1:100))
dev.off()
}

### does produce a postscript file
for ( i in 1:1) {
postscript(file="test1.ps", print.it=F, onefile=F)
plot( I(1:100), rnorm(100))
dev.off()
}

### also does produce postscript file
postscript(file="test1.ps", print.it=F, onefile=F)
xyplot(rnorm(100) ~ I(1:100))
dev.off()

Thanks for any help,

Andrew

PS I am running Splus V3.4.1 under HP-UX 10.20 on an HP712.

____________________

Andrew Sinclair
ED & F Man Investment Products
Sugar Quay
Lower Thames Street
London EC3R 6DU
tel : 0171 285 2089
fax : 0171 285 2001
email : asinclair@edfman.co.uk

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news