Learn R Programming

mobsim (version 0.1.0)

dist_decay: 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 = F)

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

Dataframe with distances between subplot pairs and the respective similarity indices

Examples

Run this code
# NOT RUN {
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)

# }

Run the code above in your browser using DataLab