s-news
[Top] [All Lists]

panel.superpose solved

To: s-news@lists.biostat.wustl.edu
Subject: panel.superpose solved
From: "Robert M. Key" <key@Princeton.EDU>
Date: Tue, 20 Feb 2001 13:06:11 -0500
Organization: Atmos. and Ocean Sci. Program
Thanks to Jim Pratt for a very quick solution. The problem was with colors
in 

xyplot(c14~silicate|Latfac,data=junkdf,
        layout=c(3,1),
        panel=function(x,y,...){
                panel.superpose(x,y,groups=Zfac,subscripts=T,
                        col=superpose.symbol$col,
                        pch=superpose.symbol$pch[1:4],
                        cex=superpose.symbol$cex)
                abline(-70,-1,lwd=2)
                })

not being set correctly for Zfac in the subplots.

The solution is:

xyplot(c14~silicate|Latfac,data=junkdf,
        layout=c(3,1),
        groups=Zfac,
        panel=function(x,y,...){
                abline(-70,-1,lwd=2)
                panel.superpose(x,y,
                        col=superpose.symbol$col,
                        pch=superpose.symbol$pch[1:4],
                        cex=superpose.symbol$cex,...)
                })

<Prev in Thread] Current Thread [Next in Thread>
  • panel.superpose solved, Robert M. Key <=