[R] xyplot background color

From: Nathan Vandergrift <vanderg_at_mail.fpg.unc.edu>
Date: Fri 01 Sep 2006 - 14:27:00 GMT


I've been unable to solve this problem using all sorts of variants of trellis.par.set, or par.settings within xyplot.

I need this plot not to be transparent, so when I drop the .ps into LaTeX it shows up on my black slides.

thanks.
nathan

traj.female<-read.delim("d:\TRAfemales.dat", header = TRUE, sep = "\t")

#This is the key to getting the right legend
trellis.par.set(superpose.line=list(lty=c(1,2,1,2,1,2),col=c(1,1,2,2,3,3))) trellis.par.set(background=list("gray"))

# This works

female.traj<-xyplot(TRA~Grade, data=traj.female, groups=Group,

            type="l", lwd=2,
            lty=c(1,2,1,2,1,2),
            col=c(1,1,2,2,3,3),
            auto.key = list(
                lines=TRUE,
                points= FALSE,
                x = .25, y = .7, corner = c(0, 0), border=TRUE),
            xlab="Grade", ylab="TRA",
            ylim=c(-.5,6.5),xlim=c(0.5,6.5),
            panel=panel.superpose,
            #par.settings=list(background="white",transparent=FALSE)
        )

female.traj



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 Sat Sep 02 01:44:58 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 Thu 07 Sep 2006 - 07:51:17 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.