Dear Tom, The Graphs -> Scatterplot dialog includes an option for a least-squares line (which is checked by default).
Best, John ----------------------------------------------- John Fox McMaster University Hamilton, Ontario, Canada > -----Original Message----- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Thomas LaBone > Sent: Friday, August 23, 2013 10:55 AM > To: r-help@r-project.org > Subject: [R] Creating a Plot in R Commander > > There a GUI menu option to do this in R Commander: > > fit <- lm(y ~ x) > > But is there an option to do this? > > plot(x,y) > lines(x,predict(fit)) > > Thanks. > > Tom > > [[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. ______________________________________________ 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.