Create spatial predictions of species occupancy and species richness from community occupancy models and raster stacks.
# S4 method for commOccu
predict(
object,
mcmc.list,
type,
draws = 1000,
level = 0.95,
interval = c("none", "confidence"),
x,
speciesSubset
)
commOccu
object
mcmc.list. Output of fit
called on a commOccu
object
character. "psi" for species occupancy estimates, "richness" for species richness estimates
Number of draws from the posterior to use when generating the plots. If fewer than draws are available, they are all used
Probability mass to include in the uncertainty interval
# Type of interval calculation. Can be "none" or "confidence". Can be slow for type = "psi" with many cells and posterior samples. Can be abbreviated.
raster stack or data.frame. Must be scaled with same parameters as site covariates used in model, and have same names.
species to include in richness estimates. Can be index number or species names.
A raster stack or data.frame, depending on x