plot.confint_adjust {api2lm} | R Documentation |
Plot confint_adjust
x
Description
Plot a confint_adjust
x produced by the
confint_adjust
function. See
Examples.
Usage
## S3 method for class 'confint_adjust'
plot(x, parm, mar = c(5.1, 7.1, 4.1, 2.1), line = mar[2] - 1, ...)
Arguments
x |
An |
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. |
mar |
A numerical vector of the form c(bottom, left, top, right) which gives the number of lines of margin to be specified on the four sides of the plot. The default is c(5, 7, 4, 2) + 0.1. |
line |
The MARgin line, starting at 0 counting
outwards, to draw the y-axis label. The default is 1
unit less than |
... |
Additional arguments passed to |
Details
The plot
function doesn't automatically adjust the
margins to account for the label names. If you need more
space for your labels, then increase the second element
of mar
from 7.1 upward and line upward.
Alternatively, if you need less space, then you can
decrease both of these values. Or you could use the
autoplot
function that automatically controls the
spacing.
Value
None.
Author(s)
Joshua P. French
Examples
fit <- lm(100/mpg ~ disp + hp + wt + am, data = mtcars)
# standard intervals
cia <- confint_adjust(fit)
plot(cia)
# plot subset of intervals
plot(cia, parm = c("hp", "disp"))
# adjust margin and line for better formatting
plot(cia, parm = 2:3, mar = c(5.1, 4.1, 4.1, 2.1))