| nr_desaturate | R Documentation |
Move image colors to gray
nr_desaturate(nr, factor = 1)
nr |
native raster image |
factor |
desaturation factor. Default: 1 (fully desaturate) |
Invisibly return the supplied native raster image which was been modified in-place
Other color manipulation functions:
nr_color_replace(),
nr_dither(),
nr_threshold()
plot(deer[[1]])
nr <- deer[[1]] |> nr_copy()
nr_desaturate(nr)
plot(nr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.