Description Usage Arguments Value Examples
View source: R/prioritiseFLOW.R
Prioritise sites according to population flow
1 2 | prioritiseFLOW(network, sites, toplot = TRUE, pop = 1e+05,
returnNET = TRUE)
|
network |
adjacency network describing where birds are going |
sites |
network sites including latitude and longitude, and population count at each site |
toplot |
TRUE/FALSE to determine whether the output is plotted or not |
pop |
number of individuals in the population |
returnNET |
TRUE/FALSE whether or not the network is a return network or not |
a list containting the prioritisation (as a list of the sites in the order they are removed), the network which was randomly generated, the tracks that were randomly generated, and the sites that were randomly generated for animals to use.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | pop=100000
rand_net = randomNET(nsites=15,pop=pop)
# priotise sites according to flow through network
prioritiseFLOW(rand_net$network, rand_net$sites, returnNET=FALSE)
# with a return network
net <- randomSTAR(nwintering=40, nbreeding=5,anadromous=FALSE)
network <- shortenNET(net$network, from = "Ssupersink", to = "Nsupersink")
colnames(network)[1]<- rownames(network)[1] <- "Ssupersource"
colnames(network)[length(colnames(network))] <- "Nsupersink"
rownames(network)[length(rownames(network))] <- "Nsupersink"
sites <- net$sites
# priotise sites according to flow through network
prioritiseFLOW(network, sites, toplot=TRUE, returnNET=TRUE)
# with a return network
net <- randomPARALLEL(nwintering=40, sd_dist=2000, nbreeding=5)
network <- shortenNET(net$network, from = "Ssupersink", to = "Nsupersink")
colnames(network)[1]<- rownames(network)[1] <- "Ssupersource"
colnames(network)[length(colnames(network))] <- "Nsupersink"
rownames(network)[length(rownames(network))] <- "Nsupersink"
sites <- net$sites
# priotise sites according to flow through network
prioritiseFLOW(network, sites, toplot=TRUE, returnNET=TRUE)
# with a return network
net <- randomDIRECTED(nwintering=40, sd_dist=2000, nbreeding=5)
network <- shortenNET(net$network, from = "Ssupersink", to = "Nsupersink")
colnames(network)[1]<- rownames(network)[1] <- "Ssupersource"
colnames(network)[length(colnames(network))] <- "Nsupersink"
rownames(network)[length(rownames(network))] <- "Nsupersink"
sites <- net$sites
# priotise sites according to flow through network
prioritiseFLOW(network, sites, toplot=TRUE, returnNET=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.