Learn R Programming

api2lm (version 0.2)

autoplot.confint_adjust: Plot confint_adjust object

Description

Plot a confint_adjust object produced by the confint_adjust function. The plotting function internally calls the autoplot function. Note: the ggplot2 package must be loaded (i.e., library(ggplot2) or ggplot2::autoplot must be specifically called for this function to work. See Examples.

Usage

autoplot.confint_adjust(object, parm, ...)

Value

None.

Arguments

object

An confint_adjust object produced by the confint_adjust function.

parm

a specification of which parameters are to be given confidence intervals, either a vector of numbers or a vector of names. If missing, all parameters are considered.

...

Not used

Author

Joshua French

Examples

Run this code
fit <- lm(100/mpg ~ disp + hp + wt + am, data = mtcars)
# standard intervals
cia <- confint_adjust(fit)
# if ggplot2 package is available
if (require(ggplot2)) {
autoplot(cia)
# select subset of plots
autoplot(cia, parm = c("hp", "disp"))
}

Run the code above in your browser using DataLab