powered by
Overlays a quadratic curve to a fitted quadratic model.
quadline(lm.obj, ...)
The function superimposes a quadratic curve onto an existing scatterplot.
A lm object (a quadratic fit)
lm
Other arguments to the lines function; e.g. col
lines
col
W.J. Braun
data(p4.18) attach(p4.18) y.lm <- lm(y ~ x1 + I(x1^2)) plot(x1, y) quadline(y.lm) detach(p4.18)
Run the code above in your browser using DataLab