
Autoplot for check_residuals objects
Source:R/model_performance_residuals.R
autoplot.check_residuals.Rdautoplot() method for objects created by check_residuals().
Produces a simulation-based uniform QQ-plot of the residuals, with the
Kolmogorov-Smirnov p-value shown in the subtitle.
Optionally prints a message about whether deviations are detected.
Usage
# S3 method for class 'check_residuals'
autoplot(object, show_message = TRUE, ...)Arguments
- object
An object of class
"check_residuals", produced bycheck_residuals().- show_message
Logical. If TRUE (default), prints a short message based on the p-value from the KS test.
- ...
Additional arguments passed to
ggplot2::autoplot().
Value
A ggplot2::ggplot object.