simulate | R Documentation |
Measure Diversity by Comparing to Simulated Assemblages
## S4 method for signature 'DiversityIndex' simulate( object, n = 1000, step = 1, interval = c("percentiles", "student", "normal"), level = 0.8, progress = getOption("tabula.progress") )
object |
A DiversityIndex object. |
n |
A non-negative |
step |
An |
interval |
A |
level |
A length-one |
progress |
A |
Returns a DiversityIndex object.
N. Frerebeau
Kintigh, K. W. (1984). Measuring Archaeological Diversity by Comparison with Simulated Assemblages. American Antiquity, 49(1), 44-54. doi: 10.2307/280511.
plot_diversity()
, resample()
Other diversity measures:
heterogeneity()
,
occurrence()
,
plot_diversity
,
rarefaction()
,
richness()
,
similarity()
,
turnover()
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.