fortify.poolaccum | R Documentation |
Prepares a fortified version of results from
vegan::poolaccum()
objects.
## S3 method for class 'poolaccum'
fortify(model, data, alpha = 0.05, ...)
model |
an object of class |
data |
original data set. Currently ignored. |
alpha |
level of quantiles for envelopes shown (default 0.05). |
... |
additional arguments passed to |
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.
Didzis Elferts & Gavin L. Simpson
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.