Cladd {shipunov} | R Documentation |
Adds confidence bands to the simple linear model plots
Cladd(model, data, level=.95, lty=2, ab.lty=0, col="black", ab.col="black")
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 |
'Cladd()' adds confidence bands to the simple linear model plots. Works only for simple lm(y ~ x) objects!
Alexey Shipunov
hg.lm <- lm(Height ~ Girth, data=trees)
plot(Height ~ Girth, data=trees)
Cladd(hg.lm, data=trees, ab.lty=1)