Skip to contents

To dispersal matrix

Usage

fun_disp_mat(
  n_patch,
  landscape_size,
  theta,
  xy_coord = NULL,
  distance_matrix = NULL,
  dispersal_matrix = NULL
)

Arguments

n_patch

Integer. Number of patches in a metacommunity.

landscape_size

Length of a landscape on a side. Enabled if distance_matrix = NULL and dispersal_matrix = NULL.

theta

Numeric. Rate parameter of exponential dispersal kernel.

xy_coord

Site coordinates. Must be provided as a data frame, in which each row corresponds to an individual site with x and y coordinates (columns). Defualt NULL.

distance_matrix

Distance matrix. Each element must indicate distance between a given pair of habitat patches. If provided, the distance matrix will be used to generate dispersal matrix and distance decay of environmental correlations. Default NULL.

dispersal_matrix

Dispersal matrix. If provided, this matrix overrides distance_matrix to simulate dispersal process. Default NULL.