I am creating a strip plot from the lattice library, and would like the display to also have the linear model line through it. How would I do that? stripplot(jitter(vs30)~tif.vs30, data=rastermodel, xlim=c(150,600), ylim=c(0,1000)) yonglm<-lm(vs30~tif.vs30, data=rastermodel) Thanks! [[alternative HTML version deleted]]
Nevermind, I figured another way through the plot command. thanks :) On Thu, Aug 27, 2009 at 7:16 AM, Mehdi Khan <mwkhan@ucdavis.edu> wrote:> I am creating a strip plot from the lattice library, and would like the > display to also have the linear model line through it. How would I do that? > > stripplot(jitter(vs30)~tif.vs30, data=rastermodel, xlim=c(150,600), > ylim=c(0,1000)) > yonglm<-lm(vs30~tif.vs30, data=rastermodel) > > Thanks! >[[alternative HTML version deleted]]