| nr_color_replace | R Documentation |
Replace colors in a native raster image
nr_color_replace(nr, old, new)
nr |
native raster image |
old |
Vector of old colors |
new |
Vector of replacement colors |
Invisibly return the supplied native raster image which was been modified in-place
Other color manipulation functions:
nr_desaturate(),
nr_dither(),
nr_threshold()
nr <- nr_new(10, 10, 'hotpink')
nr_color_replace(nr, 'hotpink', 'grey80')
plot(nr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.