colorRamp(space = 'Lab')
, but hundreds of
times faster, and provides results in "#RRGGBB"
(or
"#RRGGBBAA"
) character form instead of RGB color matrices.colour_ramp(colors, na.color = NA, alpha = FALSE)
col2rgb
. This can be a character vector of
"#RRGGBB"
or "#RRGGBBAA"
, color names from
NA
values (for example,
"#606060"
for dark grey, or "#00000000"
for transparent) and
values outside of [0,1]. Can itself by NA
, which will simply cause
an NA
to be insertTRUE
then the returned
function will provide colors in "#RRGGBBAA"
format instead of
"#RRGGBB"
.