Based on a vector of colors provided to col
, make these colors continuous
(i.e. make it possible for an arbitrary n
number of colors to be requested)
then return those n
colors.strategy
describes how to make these colors continuous:
'interpolate' interpolates provided colors using
grDevices::colorRampPalette()
'recycle' - recycles the input color vector across the
n
requested.'cutoff' - supply only a maximum of as many colors as exist within the originally supplied vector.