tweak.colourmap(m, col, ..., inputs=NULL, range=NULL)
"colourmap"
).
range
.
inputs
.
inputs
or
the specified range
of values.
"colourmap"
).
m
by assigning new colours to each of the
input values specified by inputs
,
or by assigning a single new colour
to the range of input values specified by range
.
The modified colour map is returned.
colourmap
,
interp.colourmap
,
colourtools
.
co <- colourmap(rainbow(32), range=c(0,1))
plot(tweak.colourmap(co, inputs=c(0.5, 0.6), "white"))
plot(tweak.colourmap(co, range=c(0.5,0.6), "white"))
Run the code above in your browser using DataLab