Interpolate between two colors
color_interpolate.Rd
Interpolate between two colors
Usage
color_interpolate(colors = c("#9A3324", "#016f90"), n, ...)
Arguments
- colors
chr
of hex colors- n
int
of the number of colors expected- ...
Arguments passed on to
grDevices::colorRamp
bias
a positive number. Higher values give more widely spaced colors at the high end.
space
a character string; interpolation in RGB or CIE Lab color spaces.
interpolate
use spline or linear interpolation.
alpha
logical: should alpha channel (opacity) values be returned? It is an error to give a true value if
space
is specified.