ggplot2::autoplot() methods for spacc objects. These are thin wrappers
around the corresponding plot() methods, provided for ggplot2 integration.
Arguments
- object
A spacc object.
- ...
Additional arguments passed to the corresponding
plot()method.
Examples
# \donttest{
if (requireNamespace("ggplot2", quietly = TRUE)) {
coords <- data.frame(x = runif(30), y = runif(30))
species <- matrix(rbinom(30 * 15, 1, 0.3), nrow = 30)
sac <- spacc(species, coords, n_seeds = 5, progress = FALSE)
ggplot2::autoplot(sac)
}
# }