plot.see_check_model: Plot method for checking model assumptions

View source: R/plot.check_model.R

plot.see_check_modelR Documentation

Plot method for checking model assumptions

Description

The plot() method for the performance::check_model() function. Diagnostic plots for regression models.

Usage

## S3 method for class 'see_check_model'
plot(
  x,
  style = theme_lucid,
  colors = NULL,
  type = c("density", "discrete_dots", "discrete_interval", "discrete_both"),
  n_columns = 2,
  ...
)

Arguments

x

An object.

style

A ggplot2-theme.

colors

Character vector of length two, indicating the colors (in hex-format) for points and line.

type

Plot type for the posterior predictive checks plot. Can be "density" (default), "discrete_dots", "discrete_interval" or "discrete_both" (the ⁠discrete_*⁠ options are appropriate for models with discrete - binary, integer or ordinal etc. - outcomes).

n_columns

Number of columns to align plots.

...

Arguments passed to or from other methods.

Value

A ggplot2-object.

See Also

See also the vignette about check_model().

Examples


model <- lm(qsec ~ drat + wt, data = mtcars)
plot(check_model(model))


see documentation built on Nov. 3, 2023, 5:10 p.m.