plot_regression_residuals {tidyAML} | R Documentation |
Create ggplot2 plot of regression residuals
Description
Create a ggplot2 plot of regression residuals.
Usage
plot_regression_residuals(.data)
Arguments
.data |
The data from the output of the |
Details
Create a ggplot2 plot of regression residuals. The output of this
function can either be a list of plots or a single faceted plot. This function
takes the output of the extract_regression_residuals()
function.
Value
A list of ggplot2 plots or a faceted plot.
Author(s)
Steven P. Sanderson II, MPH
See Also
Other Plotting:
plot_regression_predictions()
Examples
library(recipes)
rec_obj <- recipe(mpg ~ ., data = mtcars)
frt_tbl <- fast_regression(
mtcars,
rec_obj,
.parsnip_eng = c("lm","glm"),
.parsnip_fns = "linear_reg"
)
extract_regression_residuals(frt_tbl, FALSE)[1] |> plot_regression_residuals()
extract_regression_residuals(frt_tbl, TRUE)[1] |> plot_regression_residuals()
[Package tidyAML version 0.0.5 Index]