Graph to determine whether we should add a new predictor to the model already containing other predictors. The residuals from the model is regressed on the new predictor and if the plot shows non random pattern, you should consider adding the new predictor to the model.

ols_plot_resid_regressor(model, variable)

## Arguments

model An object of class lm. New predictor to be added to the model.

## Deprecated Function

ols_rvsr_plot() has been deprecated. Instead use ols_plot_resid_regressor().

model <- lm(mpg ~ disp + hp + wt, data = mtcars)