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