val.range
. Then
a color ramp using the colors given by color
is created and
the mapped values are transformed into hex color values.
mapCoordinatesToColor(z, colors = c("white", "black"), val.range = c(0.2, 0.8))
c(.2, .8)
).c("white", "black")
.