randomSTAR: Generate a random network

Description Usage Arguments Value Examples

View source: R/randomSTAR.R

Description

This function generates a random migratory network

Usage

1
2
3
randomSTAR(pop = 1e+05, toplot = TRUE, nbreeding = 8,
  nwintering = 4, nstop = 40, minforks = 2, maxforks = 5,
  anadromous = TRUE)

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.

nstop

number of sites used duting migratory stopover

minforks

minimum number of forks in a river branch

maxforks

maximum number of forks in a river branch

anadromous

TRUE or FALSE. If TRUE, then population breeds at the tips of network branches, otheriwe, it breeding "at sea"

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
par(mfrow=c(1,1))
randomSTAR(nbreeding = 6, toplot=TRUE)

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