randomNET: Generate a random network

View source: R/randomNET.R

randomNETR Documentation

Generate a random network

Description

This function generates a random migratory network

Usage

randomNET(
  nsites = 10,
  nedges = "ALL",
  nbreeding = 3,
  nwintering = 4,
  pop = 1e+05,
  mean_dist = 2000,
  sd_dist = 1000,
  Latrange = c(-20, 40),
  Lonrange = c(-10, 10),
  Poprange = c(100, 10000),
  toplot = TRUE
)

Arguments

nsites

number of sites to be generated in the network

nedges

number of edges in the network. If all sites should be connected then use nedges="ALL"

nbreeding

Number of breeding sites

nwintering

Number of wintering sites

pop

population size flowing through network

mean_dist

average distance the species can travel (this can be estimated from real data)

sd_dist

standard deviation of the distances a species can travel (this can be estimated from real data)

Latrange

geographic range of species, by default latitude restricted to c(-20,40),

Lonrange

geographic range of species, by default longitude restricted to c(-10,10),

Poprange

min and max population sizes to be randomly generated, by default c(100,10000)

toplot

TRUE/FALSE to determine whether the output is plotted or not

Value

a list containting the network which was randomly generated, the tracks that were randomly generated, and the sites that were randomly generated for animals to use.


KiranLDA/migflow documentation built on June 14, 2025, 9:09 a.m.