Skip to contents

Diversity Plot

Usage

# S4 method for DiversityIndex
autoplot(object, ...)

# S4 method for DiversityIndex,missing
plot(x, y, ...)

Arguments

object, x

A DiversityIndex object to be plotted.

...

Currently not used.

y

Currently not used.

Value

  • autoplot() returns a ggplot object.

  • plot() is called it for its side-effects: it results in a graphic being displayed (invisibly returns x).

Author

N. Frerebeau

Examples

# \donttest{
## Coerce data to a count matrix
data("chevelon", package = "folio")
chevelon <- as_count(chevelon)

## Assemblage diversity size comparison
## Warning: this may take a few seconds!
idx_heterogeneity <- index_heterogeneity(chevelon, method = "shannon")
sim_heterogeneity <- simulate(idx_heterogeneity)
plot(sim_heterogeneity)


idx_richness <- index_richness(chevelon, method = "none")
sim_richness <- simulate(idx_richness)
plot(sim_richness)

# }