Displaying 1 result from an estimated 1 matches for "textlab".
Did you mean:
  testlab
  
2009 May 06
1
Add trend line to XYPlot using a subset of the original data
...yplot(x,y,col=1)
   panel.lines(x,exp(predict.lm(lm(log(y)~x))),col=4)
   panel.loess(x,y,span=.7,col=5)
   },sub="Figure X.  Trends in ...",
key=list(space="bottom",points=list(col=c(9,0,0,0),pch=1),lines=list(col=c(0,4,2,3),lty=c(1,1,1,1),lwd=c(2,2,2,2)),text=list(as.character(textlabs)),columns=3))
That part works well, but I want to add a trend line using a subset of the
data.  The additional trend line always has the wrong slope. The slope of
the line should be close to zero, but positive.  It always plots close to
zero, but negative.
I've tried adding the following li...