Draw a lineup of standard residual plots
Source:R/zzz_auto_visual_inference.R
AUTO_VI-cash-plot_lineup.Rd
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
.resid
and.fitted
. See alsoAUTO_VI$get_fitted_and_resid()
.- null_method
Function. A function that takes a fitted model as input, and outputs a data frame containing variables
.resid
and.fitted
. See alsoAUTO_VI$null_method()
.- theme
ggtheme
. Aggplot
theme object. See alsoggplot2::theme_light()
.- 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.