Regarding plotting a regression fit - for a simple linear regression model the abline function adds the fitted line to a plot.

plot(optden ~ carb, Formaldehyde)
abline(fm1 <- lm(optden ~ carb, Formaldehyde))

______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to