View source: R/plot.check_model.R
plot.see_check_model | R Documentation |
The plot()
method for the performance::check_model()
function.
Diagnostic plots for regression models.
## 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,
...
)
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 |
n_columns |
Number of columns to align plots. |
... |
Arguments passed to or from other methods. |
A ggplot2-object.
See also the vignette about check_model()
.
library(performance)
model <- lm(qsec ~ drat + wt, data = mtcars)
plot(check_model(model))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.