Learn R Programming

MuMIn (version 1.46.0)

plot.model.selection: Visualize model selection table

Description

Produces a graphical representation of model weights per model term.

Usage

# S3 method for model.selection
plot(x, ylab = NULL, xlab = NULL, labels = attr(x, "terms"),
  labAsExpr = TRUE, mar.adj = TRUE,
  col = c("SlateGray", "SlateGray2"), col2 = "white", border = par("col"),
  par.lab = NULL, par.vlab = NULL,
  axes = TRUE, ann = TRUE, ...)

Value

A numeric vector of model weights.

Arguments

x

a "model.selection" object.

xlab, ylab

labels for the x and y axes.

labels

optional, a character vector or an expression containing model term labels (to appear on top side of the plot). Its length must be equal to number of model terms in the table. Defaults to the model term names.

labAsExpr

a logical indicating whether the character labels should be interpreted (parsed) as R expressions.

mar.adj

logical indicating whether the upper margin should be expanded to fit the labels

col, col2

vector of colors for columns (if more than one col is given, columns will be filled with alternating colors). If col2 is specified cells will be filled with gradient from col to col2. col2 = NA produces no gradient.

border

border color for cells and axes.

par.lab, par.vlab

optional lists of graphical parameters for the term labels (top axis) and model names (right axis), respectively.

axes, ann

logical values indicating whether the axis and annotation should appear on the plot.

...

further graphical parameters to be set for the plot.

Author

Kamil Bartoń

See Also

Examples

Run this code
# For examples, see \sQuote{[MuMIn-package]}

Run the code above in your browser using DataLab