[R] postcript file / xyplot function

From: <jessica.gervais_at_tudor.lu>
Date: Tue 03 Oct 2006 - 12:00:03 GMT


Hi,

I would like save a curve in a postscript file.

It when I use a common "plot" function (plot)

postscript(file="file.eps")
plot(x,y)
dev.off()

It's not working with the "xyplot" function (lattice package).

postscript(file="Z",height=8,width=8,horizontal=FALSE) xyplot(data[,3]~data[,2]|data[,1],panel=function(x,y){panel.xyplot(x,y) COEFF<-coef(lm(log(y)~x))
panel.curve(exp(COEFF[1]+COEFF[2]*x))
dev.off()

Do anyone know how to use the postscript function with a xyplot function ?

Thanks by advance

Jessica Gervais

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch 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. Received on Tue Oct 03 22:02:09 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 03 Oct 2006 - 12:30:11 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.