Diversity Plot
Arguments
- object, x
A DiversityIndex object to be plotted.
- ...
Currently not used.
- y
Currently not used.
Value
autoplot()
returns aggplot
object.plot()
is called it for its side-effects: it results in a graphic being displayed (invisibly returnsx
).
See also
index_heterogeneity()
, index_evenness()
, index_richness()
Other plot:
plot_bar
,
plot_line
,
plot_matrix
,
plot_spot()
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)
# }