plot.predictoreff {effects} | R Documentation |
These functions call plot.eff
and plot.efflist
to draw predictor effect plots.
## S3 method for class 'predictoreff' plot(x, x.var, main = paste(names(x$variables)[1], "predictor effect plot"), ...) ## S3 method for class 'predictorefflist' plot(x, selection, rows, cols, ask = FALSE, graphics = TRUE, lattice, ...)
x |
An object of class |
x.var |
the index (number) or quoted name of the covariate or factor to place on the horizontal axis of each panel of the effect plot. The default is the predictor with the largest number of levels or values. |
main |
the title for the plot, printed at the top; the default title is constructed from the name of the effect. |
... |
arguments to be passed to |
selection |
the optional index (number) or quoted name of the effect in an effect list to be plotted; if not supplied, a menu of high-order terms is presented or all effects are plotted. |
rows, cols |
Number of rows and columns in the "meta-array"" of plots produced for an efflist object; if either argument is missing, then the meta-layout will be computed by the plot method. |
ask |
if selection is not supplied and ask is |
graphics |
if |
lattice |
argument passed to |
The plot.predictoreff
calls the method plot.eff
and plot.predictorefflist
calls plot.efflist
. Both of these functions are documented at plot.eff
. Warning: By default, the functions documented here use the argument lines=list(multiline=TRUE)
while direct calls to the underlying functions use lines=list(multiline = FALSE)
if standard errors were computed by the call to create the object x
.
See the documentation for plot.eff
.
S. Weisberg, sandy@umn.edu
mod <- lm(prestige ~ type*(education + income + women), Prestige) plot(predictorEffects(mod, ~ income))