autoplot.Accumulation | R Documentation |
Plot Diversity Accumulation
## S3 method for class 'Accumulation'
autoplot(
object,
...,
q = dimnames(object$Accumulation)$q[1],
main = "Accumulation of ...",
xlab = "Sample size...",
ylab = "Diversity...",
ylim = NULL,
lineH0 = TRUE,
ShadeColor = "grey75",
BorderColor = "red"
)
object |
An "Accumulation" object that cat be accumulation of diversity (DivAccum), entropy (EntAccum) or the Mixing index (Mixing). |
... |
Further plotting arguments. |
q |
The order of Diversity. By default, the first value found in the "Accumulation" object is used. |
main |
Main title of the plot. |
xlab |
X-axis label. |
ylab |
Y-axis label. |
ylim |
Limits of the Y-axis, as a vector of two numeric values. |
lineH0 |
if |
ShadeColor |
The color of the shaded confidence envelope. |
BorderColor |
The color of the borders of the confidence envelope. |
# Generate a random community
spCommunity <- rSpCommunity(1, size=50, S=3)
# Calculate mixing indices of order 0 and 1
accum <- Mixing(spCommunity, q.seq=c(0,1))
autoplot(accum, q=0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.