Cladd: Adds confidence bands to the simple linear model plots

View source: R/aaa.r

CladdR Documentation

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!

Author(s)

Alexey Shipunov

See Also

lm

Examples

hg.lm <- lm(Height ~ Girth, data=trees)
plot(Height ~ Girth, data=trees)
Cladd(hg.lm, data=trees, ab.lty=1)

shipunov documentation built on Feb. 16, 2023, 9:05 p.m.

Related to Cladd in shipunov...