div_rand_rect: Distribution of local diversity indices

Description Usage Arguments Value Examples

View source: R/Diversity_Area_Relationships.R

Description

Get mean and standard deviation of diversity indices in several equally sized subplots of a community

Usage

1
div_rand_rect(prop_area = 0.25, comm, n_rect = 100, exclude_zeros = F)

Arguments

prop_area

Size of subplots as proportion of the total area

comm

community object

n_rect

Number of randomly located subplots

exclude_zeros

Should subplots without individuals be excluded? (logical)

Value

Vector with 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.

Examples

1
2
sim1 <- sim_poisson_community(100,1000)
div_rand_rect(prop_area = 0.1, comm = sim1)

mobsim documentation built on March 23, 2021, 1:09 a.m.