randomLOOP: Generate a random network

View source: R/randomLOOP.R

randomLOOPR Documentation

Generate a random network

Description

This function generates a random migratory network

Usage

randomLOOP(
  pop = 1e+05,
  toplot = TRUE,
  nbreeding = 5,
  nwintering = 10,
  npre = 20,
  npost = 20,
  mean_dist = 2000,
  sd_dist = 1000
)

Arguments

pop

population size flowing through network

toplot

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

nbreeding

number of breeding sites.

nwintering

number of nonbreeding residency/wintering sites.

npre

number of sites used duting pre-breeding (north) migration.

npost

number of sites used duting post-breeding (south) migration.

mean_dist

mean distance an animal can travel

sd_dist

standard deviation of the distance an animal can travel

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.

Examples

par(mfrow=c(1,1))
randomLOOP(toplot=TRUE)
randomLOOP(nbreeding = 3,
           nwintering = 3,
           npre = 3,
           npost = 3,
           toplot=TRUE)



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