| autoplot.spacc | R Documentation |
ggplot2::autoplot() methods for spacc objects. These are thin wrappers
around the corresponding plot() methods, provided for ggplot2 integration.
object |
A spacc object. |
... |
Additional arguments passed to the corresponding |
A ggplot2 object.
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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.