AUTO_VI$plot_lineup {autovi} | R Documentation |
Draw a lineup of standard residual plots
Description
This function draws a lineup of standard residual plots consisting of a true residual plot and several null residual plots.
Usage
AUTO_VI$plot_lineup( lineup_size = 20L, data = self$get_fitted_and_resid(), null_method = self$null_method, theme = ggplot2::theme_light(), alpha = 1, size = 0.5, stroke = 0.5, remove_axis = TRUE, remove_legend = TRUE, remove_grid_line = TRUE, add_zero_line = TRUE, remove_facet_label = FALSE, display_answer = TRUE )
Arguments
lineup_size |
Numeric. Number of plots in a lineup. |
data |
Data frame. A data frame containing variables |
null_method |
Function. A function that takes a fitted model as input,
and outputs a data frame containing variables |
theme |
|
alpha |
Numeric. Alpha of dot. Value between 0 and 1. |
size |
Numeric. Size of dot. Value between 0 and 1. |
stroke |
Numeric. Stroke of dot. Value between 0 and 1. |
remove_axis |
Boolean. Whether or not to remove the axis. |
remove_legend |
Boolean. Whether or not to remove the legend. |
remove_grid_line |
Boolean. Whether or not to remove the grid lines. |
add_zero_line |
Boolean. Whether or not to add a zero horizontal line. |
remove_facet_label |
Boolean. Whether or not to remove facet labels. |
display_answer |
Boolean. Whether or not to display the answer in title. |
Value
A ggplot
.
Examples
my_vi <- auto_vi(fitted_model = lm(speed ~ dist, data = cars))
my_vi$plot_lineup()