
Last chance! 50% off unlimited learning
Sale ends in
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)
A ggplot
object.
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.
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)
Run the code above in your browser using DataLab