dispersal_matrix: Generate Dispersal Matrix

View source: R/sim_setup.R

dispersal_matrixR Documentation

Generate Dispersal Matrix

Description

Generates dispersal matrix for metacommunity simulations

Usage

dispersal_matrix(
  landscape,
  torus = TRUE,
  disp_mat,
  kernel_exp = 0.1,
  plot = TRUE
)

Arguments

landscape

landscape generated by landscape_generate()

torus

whether to model the landscape as a torus

disp_mat

optional matrix with each column specifying the probability that an individual disperses to each other patch (row)

kernel_exp

the exponential rate at which dispersal decreases as a function of the distance between patches

plot

option to show plot of environmental variation

Value

matrix with dispersal probabilities

Author(s)

Patrick L. Thompson, patrick.thompson@zoology.ubc.ca

Examples

dispersal_matrix(landscape_generate())


plthompson/mcomsimr documentation built on Feb. 6, 2023, 8:20 a.m.