quadline: Quadratic Overlay

Description Usage Arguments Value Author(s) See Also Examples

Description

Overlays a quadratic curve to a fitted quadratic model.

Usage

1
quadline(lm.obj, ...)

Arguments

lm.obj

A lm object (a quadratic fit)

...

Other arguments to the lines function; e.g. col

Value

The function superimposes a quadratic curve onto an existing scatterplot.

Author(s)

W.J. Braun

See Also

lm

Examples

1
2
3
4
5
6
data(p4.18)
attach(p4.18)
y.lm <- lm(y ~ x1 + I(x1^2))
plot(x1, y)
quadline(y.lm)
detach(p4.18)

MPV documentation built on June 8, 2018, 1:03 a.m.