pkgdown/mathjax-config.html

Skip to contents

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.

Value

A ggplot2 object.

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)
}
# }