Re: [R] Adding info from summary(lm(...)) to plot

2007-12-09 Thread Marc Schwartz
On Sun, 2007-12-09 at 19:15 +, [EMAIL PROTECTED] wrote: > Hi Folks, > > Say I have 2 continuous variables X,Y. > > I can of course plot (X,Y) with > > plot(X,Y,pch="+",col="blue") > > say, and add the regression line from lm(Y~X) > by extracting the coefficients 'a' of Intercept > and 'b

Re: [R] Adding info from summary(lm(...)) to plot

2007-12-09 Thread Gabor Grothendieck
If x <- round(...whatever...) try: title(capture.output(print(x))) On Dec 9, 2007 2:15 PM, Ted Harding <[EMAIL PROTECTED]> wrote: > Hi Folks, > > Say I have 2 continuous variables X,Y. > > I can of course plot (X,Y) with > > plot(X,Y,pch="+",col="blue") > > say, and add the regression line from