Skip to contents

autoplot() 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 by check_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.

Author

Martin Haringa