Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot

Visualize model selection table


Description

Produces a graphical representation of model weights per model term.

Usage

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

Arguments

x

a "model.selection" object.

xlab, ylab

labels for the x and y axis.

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 model term names.

labAsExpr

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

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. Set col2 to NA for no gradient.

border

border color for cells and axes.

par.lab, par.vlab

optional lists or parameters for 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 (see par).

Author(s)

Kamil Bartoń

See Also

For examples, see ‘MuMIn-package


MuMIn

Multi-Model Inference

v1.43.17
GPL-2
Authors
Kamil Bartoń
Initial release
2020-04-14

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.