View source: R/samplingStrategy.R
sampling_strategy_direct | R Documentation |
Function that determines the optimal spatial arrangement for direct sampling sites
sampling_strategy_direct(river, nSites)
river |
A |
nSites |
Number of sites to be deployed. Cannot be higher than |
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).
library(rivnet)
data(wigger)
wigger <- paths_river(wigger)
sites <- sampling_strategy_direct(wigger, 20)
plot(wigger)
points_colorscale(wigger$AG$X[sites], wigger$AG$Y[sites], 1:20)
title("Rank of selected sites")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.