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 extract and print only coefficients and R-squared. > > > > -- > View this message in context: > http://r.789695.n4.nabble.com/adding-linear-regression-data-to-plot-tp3357946p3357946.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- #################################### Mohamed Lajnef,IE INSERM U955 eq 15# Pôle de Psychiatrie # Hôpital CHENEVIER # 40, rue Mesly # 94010 CRETEIL Cedex FRANCE # mohamed.laj...@inserm.fr # tel : 01 49 81 32 79 # Sec : 01 49 81 32 90 # fax : 01 49 81 30 99 # #################################### [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.