Learn R Programming

ggvegan (version 0.1-0)

fortify.poolaccum: Fortify extrapolated species richness of a species pool

Description

Prepares a fortified version of results from poolaccum objects.

Usage

# S3 method for poolaccum
fortify(model, data, alpha = 0.05, ...)

Arguments

model

an object of class poolaccum.

data

original data set. Currently ignored.

alpha

level of quantiles for envelopes shown (default 0.05).

...

additional arguments passed to summary.poolaccum, notably display to control which indices should be computed.

Value

A data frame with columns Index, Size, Richness, Lower, Upper, and Std.dev, containing the richness index, permutation richness estimator, sample size, upper and lower \(1 - \alpha\) quantile interval, and standard deviation of permutation estimates, respectively.

Examples

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

ggplot(df, aes(x = Size, y = Richness, colour = Index)) +
    geom_ribbon(aes(ymin = Lower, ymax = Upper, x = Size, fill = Index),
                alpha = 0.3, inherit.aes = FALSE) +
    geom_line() +
    facet_wrap(~ Index)
# }

Run the code above in your browser using DataLab