Skip to content
Prev 275810 / 398506 Next

Polynomial regression line

I would think you could also do so with lines() directly, though you'll have to choose an appropriate mesh of points to do so. A little wrapper function could be written to do so pretty easily if you want to combine it with the scatterplot, but since the fitted values are already in the output of lm something like this should work:

# Untested
lines(m$x, m$fitted.values)

Michael
On Oct 28, 2011, at 12:10 PM, Ben Tupper <btupper at bigelow.org> wrote: