R/plot.performance_simres.R
plot.see_performance_simres.RdThe plot() method for the performance::check_residuals() resp.
performance::simulate_residuals() function.
An object.
Numeric value specifying size of line geoms.
Numeric specifying size of point-geoms.
Numeric value specifying size of axis and plot titles.
Numeric value specifying alpha level of the confidence bands.
Numeric value specifying alpha level of the point geoms.
Character vector of length two, indicating the colors (in hex-format) for points and line.
Logical that decides if Q-Q and P-P plots should be de-trended (also known as worm plots).
Function to transform the residuals. If NULL (default),
no transformation is applied and uniformly distributed residuals are expected.
See argument quantileFuntion in ?DHARMa:::residuals.DHARMa for more details.
A ggplot2-theme.
Arguments passed to or from other methods.
A ggplot2-object.
See also the vignette about check_model().
data(Salamanders, package = "glmmTMB")
model <- glmmTMB::glmmTMB(
count ~ mined + spp + (1 | site),
family = poisson(),
data = Salamanders
)
simulated_residuals <- performance::simulate_residuals(model)
plot(simulated_residuals)
# or
simulated_residuals <- performance::simulate_residuals(model)
result <- performance::check_residuals(simulated_residuals)
plot(result)