[R] obtain linear regression parameters from qplot

Jonghoon Choi
Mon, 10 Aug 2009 16:32:30 -0000

Hi,
My question is how to get linear regression parameters (e.g. slope,
y-intercept, etc.) from the fittings in qplot.

My code looks like this,

Fig1 = qplot(data=subset(totalD, (Name=="increase1"), x=Time,
y=Intensity,
main="Total Data")
Fig1 + stat_smooth(method="lm")

I can get the linear regression fittings but I am not sure how to get the
parameters out of them.

Thanks for your help in advance.
JC

	[[alternative HTML version deleted]]