Re: [R] xyplot: trouble changing graphics settings

From: Richard M. Heiberger <rmh_at_temple.edu>
Date: Tue 02 May 2006 - 08:50:58 EST


bug <- read.table("tmp.dat", header=TRUE)

tpgs <- trellis.par.get("superpose.symbol")

xyplot(dnaconc ~ size | site,

       data=bug,
       groups=prey,
       pch=c(19,24),
       between=list(x=1, y=1),
       key=list(
         text=list(c("0","1"), col=tpgs$col[1:2]),
         points=list(pch=c(19,24), col=tpgs$col[1:2])))

trellis.device(postscript, file="tmp.ps") xyplot(dnaconc ~ size | site,

       data=bug,
       groups=prey,
       pch=c(19,24),
       between=list(x=1, y=1),
       key=list(
         text=list(c("0","1")),
         points=list(pch=c(19,24))))

dev.off()

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 Received on Tue May 02 09:01:13 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 02 May 2006 - 10:09:56 EST.

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