Re: [R] fitting a linear model line through srip plot

2009-08-27 Thread Mehdi Khan
Nevermind, I figured another way through the plot command. thanks :) On Thu, Aug 27, 2009 at 7:16 AM, Mehdi Khan 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(v

[R] fitting a linear model line through srip plot

2009-08-27 Thread Mehdi Khan
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! [[