Estimate diversity indices in subplots of different sizes. This includes the well-known species-area and endemics-area relationships.
divar(comm, prop_area = seq(0.1, 1, by = 0.1), n_samples = 100,
exclude_zeros = T)
community
object
Subplot sizes as proportion of the total area (numeric)
Number of randomly located subplots per subplot size (single integer)
Should subplots without individuals be excluded? (logical)
Dataframe with the proportional area of the subplots and mean and standard deviation of the following diversity indices:
Number of species
Number of endemics
Shannon index
Effective number of species (ENS) based on Shannon index
Simpson index
Effective number of species (ENS) based on Simpson index
See the documentation of div_rect
for detailed information on the
definition of the diversity indices.
# NOT RUN {
sim1 <- sim_thomas_community(100, 1000)
divar1 <- divar(sim1, prop_area = seq(0.01, 1.0, length = 20))
plot(divar1)
# }
Run the code above in your browser using DataLab