Re: [R] adding linear regression data to plot

2011-03-17 Thread Jim Lemon
On 03/17/2011 02:47 AM, derek wrote: I know I can add line to graph with abline(), but I would like to print R-squared, F-test value, Residuals and other statistics from lm() to a graph. I don't know how to access the values from summary(), so that I can use them in a following code or print

Re: [R] adding linear regression data to plot

2011-03-16 Thread derek
I know I can add line to graph with abline(), but I would like to print R-squared, F-test value, Residuals and other statistics from lm() to a graph. I don't know how to access the values from summary(), so that I can use them in a following code or print them in a graph. -- View this message in

Re: [R] adding linear regression data to plot

2011-03-16 Thread Martyn Byng
Of derek Sent: 16 March 2011 15:47 To: r-help@r-project.org Subject: Re: [R] adding linear regression data to plot I know I can add line to graph with abline(), but I would like to print R-squared, F-test value, Residuals and other statistics from lm() to a graph. I don't know how to access the values

Re: [R] adding linear regression data to plot

2011-03-16 Thread Peter Ehlers
On 2011-03-16 08:47, derek wrote: I know I can add line to graph with abline(), but I would like to print R-squared, F-test value, Residuals and other statistics from lm() to a graph. I don't know how to access the values from summary(), so that I can use them in a following code or print them

Re: [R] adding linear regression data to plot

2011-03-16 Thread derek
Thank you that is very helpful. -- View this message in context: http://r.789695.n4.nabble.com/adding-linear-regression-data-to-plot-tp3357946p3382615.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

Re: [R] adding linear regression data to plot

2011-03-16 Thread Mohamed Lajnef
Hi Jan, If you want to plot the fitted values of lm function, you can use abline function ? abline ( te get help) Regrads M Le 15/03/11 23:26, derek a écrit : Hello R, I would like to print regression data in graph. I mean the output from: k=lm(formula,data) summary(k) Or somehow

[R] adding linear regression data to plot

2011-03-15 Thread derek
Hello R, I would like to print regression data in graph. I mean the output from: k=lm(formula,data) summary(k) Or somehow extract and print only coefficients and R-squared. -- View this message in context: