randomEIGHT: Generate a random network

Description Usage Arguments Value Examples

View source: R/randomEIGHT.R

Description

This function generates a random migratory network

Usage

1
2
3
randomEIGHT(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

1
2
3
4
5
6
7
par(mfrow=c(1,1))
randomLOOP(toplot=TRUE)
randomLOOP(nbreeding = 3,
           nwintering = 3,
           npre = 3,
           npost = 3,
           toplot=TRUE)

KiranLDA/migflow documentation built on Aug. 8, 2019, 8:55 p.m.