Learn R Programming

olsrr (version 0.5.3)

ols_plot_diagnostics: Diagnostics panel

Description

Panel of plots for regression diagnostics.

Usage

ols_plot_diagnostics(model, print_plot = TRUE)

Arguments

model

An object of class lm.

print_plot

logical; if TRUE, prints the plot else returns a plot object.

#' @section Deprecated Function: ols_diagnostic_panel() has been deprecated. Instead use ols_plot_diagnostics().

Examples

Run this code
model <- lm(mpg ~ disp + hp + wt + qsec, data = mtcars)
ols_plot_diagnostics(model)

Run the code above in your browser using DataLab