divar: Diversity-area relationships

Description Usage Arguments Value See Also Examples

View source: R/Diversity_Area_Relationships.R

Description

Estimate diversity indices in subplots of different sizes. This includes the well-known species-area and endemics-area relationships.

Usage

1
2
3
4
5
6
divar(
  comm,
  prop_area = seq(0.1, 1, by = 0.1),
  n_samples = 100,
  exclude_zeros = T
)

Arguments

comm

community object

prop_area

Subplot sizes as proportion of the total area (numeric)

n_samples

Number of randomly located subplots per subplot size (single integer)

exclude_zeros

Should subplots without individuals be excluded? (logical)

Value

Dataframe with the proportional area of the subplots and mean and standard deviation of the following diversity indices:

  1. Number of species

  2. Number of endemics

  3. Shannon index

  4. Effective number of species (ENS) based on Shannon index

  5. Simpson index

  6. 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.

See Also

div_rand_rect, div_rect

Examples

1
2
3
sim1 <- sim_thomas_community(100, 1000)
divar1 <- divar(sim1, prop_area = seq(0.01, 1.0, length = 20))
plot(divar1)

MoBiodiv/MoBspatial documentation built on July 24, 2021, 6:09 p.m.