View source: R/util_binarize.R
| util_binarize | R Documentation | 
Classify continuous raster values into binary map cells based upon given
break(s).
util_binarize(x, breaks)
## S3 method for class 'RasterLayer'
util_binarize(x, breaks)
x | 
 Raster* object  | 
breaks | 
 Vector with one or more break percentages  | 
Breaks are considered to be habitat percentages (p). If more than
one percentage is given multiple layers are written in the same brick.
RasterLayer / RasterBrick
breaks <- c(0.3, 0.5)
binary_maps <- util_binarize(gradient_landscape, breaks)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.