shipunov (version 1.5)

Cladd: Adds confidence bands to the simple linear model plots

Description

Adds confidence bands to the simple linear model plots

Usage

Cladd(model, data, level=.95, lty=2, ab.lty=0, col="black", ab.col="black")

Arguments

model

Simple linear model name

data

Original data

level

Confidence level

lty

Confidence bands line type

ab.lty

Regression line type

col

Confidence bands line color

ab.col

Regression line color

Details

'Cladd()' adds confidence bands to the simple linear model plots. Works only for simple lm(y ~ x) objects!

See Also

lm

Examples

Run this code
# NOT RUN {
hg.lm <- lm(Height ~ Girth, data=trees)
plot(Height ~ Girth, data=trees)
Cladd(hg.lm, data=trees, ab.lty=1)
# }

Run the code above in your browser using DataLab