Determine optimal spatial arrangement for eDNA sampling
sampling_strategy_eDNA.Rd
Function that determines the optimal spatial arrangement for eDNA sampling sites
Arguments
- river
A
river
object generated viapaths_river
.- nSites
Number of sites to be deployed. Cannot be higher than
river$AG$nNodes
.
Value
A vector containing the ID of the nSites
selected sites according to this strategy.
Sites are sorted according to their rank (i.e., the first site in the vector is the first one
that has been selected).
Examples
library(rivnet)
data(wigger)
wigger <- paths_river(wigger)
sites <- sampling_strategy_eDNA(wigger, 20)
plot(wigger)
points_colorscale(wigger$AG$X[sites], wigger$AG$Y[sites], 1:20)
title("Rank of selected sites")