Plot AD_envelope
# S3 method for AD_envelope
plot(
x,
colors = getOption("asympDiag.plot.AD_envelope.colors"),
xlab = "Expected quantiles",
ylab = "Observed quantiles",
distribution = function(p) stats::qnorm((1 + p)/2),
ylim = base::range(c(x$observed, x$lower, x$upper), na.rm = TRUE, finite = TRUE),
...
)
No return value, called for side effects
AD_envelope object, usually the result of envelope()
Vector of length 2, with color for points outside and inside the envelope band, respectively.
The label for the x-axis.
The label for the y-axis.
quantile function for reference theoretical distribution.
the y limits of the plot.
extra arguments passed to graphics::plot
Create envelope plot. The expected quantile, by default, is from a half-normal
distribution, as the default residuals from envelope_residual()
are absolute.
You may replace it with the distribution
argument.