plot_model | R Documentation |
Plotting functions for some common model diagnostics.
plot_model(model)
plot_model_residual_fitted(model)
plot_model_scale_location(model)
plot_model_qq(model)
plot_model_cooks_distance(model)
plot_model_multicollinearity(model)
model |
An object containing a model. |
plot_model_residual_fitted()
plots the model residuals
versus the fitted values. plot_model_scale_location()
plots the
square root of absolute value of the model residuals versus the fitted
values. plot_model_qq()
plots a QQ plot of the model standardized
residuals. plot_model_cooks_distance()
plots a bat chart of each
observation Cook's distance value. plot_model_multicollinearity()
plots a bar chart of the variance inflation factor (VIF) for each of the
model terms. plot_model()
returns a plot grid with all the
applicable plot diagnostics to a given model.
A ggplot
object.
m <- lm(disp ~ mpg + hp + cyl + mpg:cyl, mtcars)
plot_model(m)
plot_model_residual_fitted(m)
plot_model_scale_location(m)
plot_model_qq(m)
plot_model_cooks_distance(m)
plot_model_multicollinearity(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.