div_rand_rect: Distribution of local diversity indices

View source: R/Diversity_Area_Relationships.R

div_rand_rectR Documentation

Distribution of local diversity indices

Description

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

Usage

div_rand_rect(prop_area = 0.25, comm, n_rect = 100, exclude_zeros = FALSE)

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

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



mobsim documentation built on May 29, 2024, 8:15 a.m.