plot.Accumulation: Plot Diversity Accumulation

View source: R/Accumulation.R

plot.AccumulationR Documentation

Plot Diversity Accumulation

Description

Plot Diversity Accumulation

Usage

## S3 method for class 'Accumulation'
plot(
  x,
  ...,
  q = dimnames(x$Accumulation)$q[1],
  type = "l",
  main = "Accumulation of ...",
  xlab = "Sample size...",
  ylab = "Diversity...",
  ylim = NULL,
  lineH0 = TRUE,
  LineWidth = 2,
  ShadeColor = "grey75",
  BorderColor = "red"
)

Arguments

x

An "Accumulation" object that can 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.

type

Plotting parameter. Default is "l".

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 TRUE, the values of the null hypothesis are plotted.

LineWidth

Width of the Diversity Accumulation Curve line.

ShadeColor

The color of the shaded confidence envelope.

BorderColor

The color of the borders of the confidence envelope.

Examples

# 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))
plot(accum, q=0)

EricMarcon/SpatDiv documentation built on May 25, 2023, 12:54 p.m.