autoplot.spacc: Autoplot Methods for spacc Objects

View source: R/autoplot.R

autoplot.spaccR Documentation

Autoplot Methods for spacc Objects

Description

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


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


spacc documentation built on June 20, 2026, 5:07 p.m.