plot.predictoreff {effects}R Documentation

Draw Predictor Effect Plots

Description

These functions call plot.eff and plot.efflist to draw predictor effect plots.

Usage



## 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, ...)

Arguments

x

An object of class predictoreff or predictorefflist.

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 plot.eff or plot.efflist.

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 TRUE, a menu of high-order terms is presented; if ask is FALSE (the default), effects for all high-order terms are plotted in an array.

graphics

if TRUE (the default), then the menu of terms to plot is presented in a dialog box rather than as a text menu.

lattice

argument passed to plot.efflist.

Details

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.

Value

See the documentation for plot.eff.

Author(s)

S. Weisberg, sandy@umn.edu

See Also

predictorEffect, plot.eff.

Examples

mod <- lm(prestige ~ type*(education + income + women), Prestige)
plot(predictorEffects(mod, ~ income))

[Package effects version 4.0-2 Index]