siteByPixel | R Documentation |
The default behavior computes distance, where positive numbers indicate downstream distances and negative numbers indicate upstream distances. Other variables can also be used, but in all cases the values will be summed to compute the 'distance'
siteByPixel(ws, x, variable = "length")
ws |
A Watershed |
x |
A vector of pixel ids from which to compute the distance |
variable |
The variable to use for the distance |
Upstream distances do NOT include intermediate pixels; they only include pixels in 'x'
A matrix with dimensions 'length(x)' by 'nrow(ws)'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.