Plot marginal effect plots (= response curves if covariates are continuous) for all species in a community (multi-species) occupancy model. Takes into account species-specific intercepts (if any). Currently only supports continuous covariates, not categorical covariates.
# S4 method for commOccu
plot_effects(
object,
mcmc.list,
submodel = "state",
draws = 1000,
outdir,
level = 0.95,
keyword_squared = "_squared",
...
)
commOccu
object
mcmc.list. Output of fit
called on a commOccu
object
Submodel to get plots for. Can be "det" or "state"
Number of draws from the posterior to use when generating the plots. If fewer than draws are available, they are all used
Directory to save plots to (optional)
Probability mass to include in the uncertainty interval
character. A suffix in covariate names in the model that indicates a covariate is a quadratic effect of another covariate which does not carry the suffix in its name.
additional arguments for ggsave
list of ggplot objects