Learn R Programming

ggvegan (version 0.1-0)

autoplot.poolaccum: ggplot-based plot for objects of class "poolaccum"

Description

Produces a multi-layer ggplot object representing the output of objects produced by poolaccum.

Usage

# S3 method for poolaccum
autoplot(object, facet = TRUE, ribbon = facet,
  ncol = NULL, ribbon.alpha = 0.3, xlab = "Size",
  ylab = "Richness", title = "Accumulated species richness",
  subtitle = NULL, caption = NULL, ...)

Arguments

object

an object of class "poolaccum", the result of a call to poolaccum.

facet

logical; should extrapolated richness estimators be shown in separate facets?

ribbon

logical; show the quantile-based uncertainty interval? Uses geom_ribbon for plot.

ncol

numeric; if facetting the plot, how many columns to use. Default arguuments will result in three columns.

ribbon.alpha

numeric; alpha transparency used for the uncertainty interval. Passed to the alpha aesthetic of geom_ribbon.

xlab

character; label for the x axis.

ylab

character; label for the y axis.

title

character; title for the plot.

subtitle

character; subtitle for the plot.

caption

character; caption for the plot.

...

additional arguments passed to fortify.poolaccum.

Value

A ggplot object.

Examples

Run this code
# NOT RUN {
data(BCI)
pool <- poolaccum(BCI)

autoplot(pool)

## Turn off facetting; turns off ribbon too
autoplot(pool, facet = FALSE)
# }

Run the code above in your browser using DataLab