| plot.spacc | R Documentation |
Create a ggplot2 visualization of species accumulation curves.
For grouped spacc objects, curves are overlaid with different colors.
## S3 method for class 'spacc'
plot(
x,
ci = TRUE,
ci_level = 0.95,
ci_alpha = 0.3,
show_seeds = FALSE,
saturation = FALSE,
saturation_level = 0.9,
facet = FALSE,
...
)
x |
A |
ci |
Logical. Show confidence interval ribbon? Default |
ci_level |
Numeric. Confidence level for interval. Default 0.95. |
ci_alpha |
Numeric. Transparency of CI ribbon. Default 0.3. |
show_seeds |
Logical. Show individual seed curves? Default |
saturation |
Logical. Mark saturation point? Default |
saturation_level |
Numeric. Proportion for saturation. Default 0.9. |
facet |
Logical. Use faceted panels for grouped objects? Default |
... |
Additional arguments (ignored). |
A ggplot2 object.
coords <- data.frame(x = runif(50), y = runif(50))
species <- matrix(rbinom(50 * 30, 1, 0.3), nrow = 50)
sac <- spacc(species, coords)
plot(sac)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.