dist_decay: Distance decay of similarity

View source: R/Diversity_Area_Relationships.R

dist_decayR Documentation

Distance decay of similarity

Description

Estimate pairwise similarities of communities in subplots as function of distance

Usage

dist_decay(
  comm,
  prop_area = 0.005,
  n_samples = 20,
  method = "bray",
  binary = FALSE
)

Arguments

comm

community object

prop_area

Subplot size as proportion of the total area

n_samples

Number of randomly located subplots

method

Choice of (dis)similarity index. See vegdist

binary

Perform presence/absence standardization before analysis? See vegdist

Value

Object of class dist_decay: a dataframe with distances between subplot pairs and the respective similarity indices.

Examples

sim_com1 <- sim_thomas_community(100, 10000, sigma = 0.1, mother_points = 2)
dd1 <- dist_decay(sim_com1, prop_area = 0.005, n_samples = 20)
plot(dd1)


MoBiodiv/MoBspatial documentation built on March 26, 2024, 7:11 a.m.