Re: [R] adding linear regression data to plot

From: Mohamed Lajnef <Mohamed.lajnef_at_inserm.fr>
Date: Wed, 16 Mar 2011 09:18:05 +0100

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_at_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.lajnef_at_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_at_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.

Received on Wed 16 Mar 2011 - 08:22:44 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 16 Mar 2011 - 17:30:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive