> -----Original Message-----
> From: r-help-boun...@r-project.org 
> [mailto:r-help-boun...@r-project.org] On Behalf Of Kris
> Sent: Wednesday, March 04, 2009 8:28 PM
> To: r-help@r-project.org
> Subject: [R] new r user
> 
> When adding a trend line to a scatterplot (e.g. abline 
> (90,4,col="red"), I
> believe the "90" is the intercept and "4" is the slope.  How 
> do I determine
> the intercept and slope for the abline command?
> 
>  
> 
> Kristopher R. Deininger
> Management Strategy & Entrepreneurship
> PhD Student 2012
> 
> Robert H. Smith School of Business
> University of Maryland
> 3330L Van Munching Hall
> College Park, MD 20742-1815
> 

If you are asking how to find the least-squares estimates for slope and
intercept for a given set of data, then look at 

?lm

If you are asking about something else, then you will need to provide more
context.

Hope this is helpful,

Dan

Daniel Nordlund
Bothell, WA USA

______________________________________________
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.

Reply via email to