R/nr-color.R
nr_color_replace.Rd
Replace colors in a native raster image
nr_color_replace(nr, old, new)
native raster image
Vector of old colors
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_desaturate()
nr_dither()
nr_threshold()
nr <- nr_new(10, 10, 'hotpink') nr_color_replace(nr, 'hotpink', 'grey80') plot(nr)