Skip to contents

Diversity Plot

Usage

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

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

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

# S4 method for RarefactionIndex,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).

See also

Other diversity measures: heterogeneity(), occurrence(), rarefaction(), richness(), similarity(), simulate(), turnover()

Other plot methods: plot_bar, plot_heatmap(), plot_line, plot_spot()

Author

N. Frerebeau

Examples

# \donttest{
data("cantabria")

## Assemblage diversity size comparison
## Warning: this may take a few seconds!
h <- heterogeneity(cantabria, method = "shannon")
h_sim <- simulate(h)
plot(h_sim)


r <- richness(cantabria, method = "count")
r_sim <- simulate(r)
plot(r_sim)

# }