| nr_threshold | R Documentation |
Threshold to binary image
nr_threshold(nr, value = 0.5)
nr |
native raster image |
value |
Threshold value. Default: 0.5 (valid range [0, 1]) |
Invisibly return the supplied native raster image which was been modified in-place
Other color manipulation functions:
nr_color_replace(),
nr_desaturate(),
nr_dither()
nr <- nr_copy(deer[[1]])
plot(nr)
nr_threshold(nr, 0.9)
plot(nr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.