Skip to content
Prev 157057 / 398506 Next

lattice xyplot symbols instead of colors and legend matching plot symbols or colors

xyplot(GPP~(1/Iron)+(1/TSS)+TIN.TP, groups=RiverMile,data=f,
scales=list(relation="free"), par.settings = list(
          superpose.symbol = list(
            pch = c(1:7),
            fill = c("red", "blue"),
            col = "black")), auto.key=TRUE,
	    panel=function(...){
	    panel.xyplot(...)
	    panel.abline(lm(GPP~I(1/Iron), data=f))
	    panel.abline(lm(GPP~I(1/TSS), data=f))
	    panel.abline(lm(GPP~I(TIN.TP), data=f))
})

now how do I get the panel abline to only plot in the appropriate
panel GPP~1/Iron and the regression line for this panel only in that
panel
thanks
On Wed, Sep 24, 2008 at 1:15 PM, stephen sefick <ssefick at gmail.com> wrote: