Learn R Programming

tabula (version 1.7.0)

plot_diversity: Diversity Plot

Description

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, ...)

Value

  • autoplot() returns a ggplot object.

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

Arguments

object, x

A DiversityIndex object to be plotted.

...

Currently not used.

y

Currently not used.

Author

N. Frerebeau

See Also

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

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

Examples

Run this code
# \donttest{
## Coerce data to a count matrix
data("chevelon", package = "folio")

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

r <- richness(chevelon, method = "count")
r_sim <- simulate(r)
plot(r_sim)
# }

Run the code above in your browser using DataLab