ablineCI: Add Confidence Interval Lines to a Plot

Description Usage Arguments Value Author(s) Examples

View source: R/plotting.R

Description

This function adds confidence interval lines from a model to the current plot.

Usage

1
ablineCI(x, level = .95, lty = 2, ...)

Arguments

x

an object inheriting from lm.

level

confidence level.

lty

the line type.

...

additional arguments passed to lines

Value

A matrix of predictions.

Author(s)

Antoine Filipovic Pierucci

Examples

1
2
3
4
5
6
7
x <- rnorm(10)
y <- rnorm(10)
mod <- lm(y ~ x)

plot(x, y)
abline(mod)
ablineCI(mod)

rmngb documentation built on May 29, 2017, 9:22 p.m.

Related to ablineCI in rmngb...