Hi.
Is there an analog to abline() that can be used to plot a polynomial fit?
For example, I can draw the straight-line fit
fit <- lm(y ~ x)
via
abline(coef=fit$coef)
but I'm not sure how to draw the polynomial fit
fit <- lm(y ~ poly(x,2))
I do see the function curve(), but not
2
minor 7.0
year 2008
month 04
day22
svn rev45424
language R
version.string R version 2.7.0 (2008-04-22)
--
Ronnen Levinson, Ph.D.
scientist, Lawrence Berkeley National Lab
The Onion horoscope: Libra September
__
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.
mingw32
system i386, mingw32
status
major 2
minor 6.1
year 2007
month 11
day26
svn rev43537
language R
version.string R version 2.6.1 (2007-11-26)
--
Ronnen Levinson, Ph.D.
scienti
4 matches
Mail list logo