Re: [R] Add trend line to XYPlot using a subset of the original data

2009-05-06 Thread Deepayan Sarkar
On Wed, May 6, 2009 at 12:29 PM, kryberg wrote: > > I've created an xyplot that I want to add a trend line to using a subset of > the data. > > The xyplot is > > xyplot(X9444500~WY,data=mynewdata,xlim=c(1900,2020),ylab="TEST", > xlab="",ylim=c(100,10),scales=list(x=list(at=c(1900,1920,1940,196

[R] Add trend line to XYPlot using a subset of the original data

2009-05-06 Thread kryberg
I've created an xyplot that I want to add a trend line to using a subset of the data. The xyplot is xyplot(X9444500~WY,data=mynewdata,xlim=c(1900,2020),ylab="TEST", xlab="",ylim=c(100,10),scales=list(x=list(at=c(1900,1920,1940,1960,1980,2000,2020),axs="r",tck=-1),y=list(log=TRUE,tck=-100,at=