powered by
Adds confidence bands to the simple linear model plots
Cladd(model, data, level=.95, lty=2, ab.lty=0, col="black", ab.col="black")
Simple linear model name
Original data
Confidence level
Confidence bands line type
Regression line type
Confidence bands line color
Regression line color
Alexey Shipunov
'Cladd()' adds confidence bands to the simple linear model plots. Works only for simple lm(y ~ x) objects!
lm
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