ggplot2::autoplot() methods for spacc objects. Each one calls the
corresponding plot() method, which already returns a ggplot2 object.
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)
}
# }