as_patch | R Documentation |
Convert abundance to patch density
as_patch( x, threshold = list(10000, c(2500, 5000, 7500, 10000))[[1]], form = c("index", "factor")[2] )
x |
a vector of abundances |
threshold |
numeric boundaries defining levels of patchiness from low to high.
Values in |
form |
character, one of 'index' of 'factor' to control the output type in either case NAs are propagated. |
numeric indices into threshold, possibly as factors. Zero means no patch.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.