
Last chance! 50% off unlimited learning
Sale ends in
The plot()
method for the performance::check_model()
function.
Diagnostic plots for regression models.
# S3 method for see_check_model
plot(
x,
style = theme_lucid,
colors = NULL,
type = c("density", "discrete_dots", "discrete_interval", "discrete_both"),
n_columns = 2,
...
)
A ggplot2-object.
An object.
A ggplot2-theme.
Character vector of length two, indicating the colors (in hex-format) for points and line.
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).
Number of columns to align plots.
Arguments passed to or from other methods.
See also the vignette about check_model()
.
library(performance)
model <- lm(qsec ~ drat + wt, data = mtcars)
plot(check_model(model))
Run the code above in your browser using DataLab