Simple rainbow palette replacement using variable saturation and vibrance
rainbow2(n, s = c(0.9,0.7,0.88,0.55), v = c(0.92,1,0.85,0.94),...)
Arguments
n: integer number of colors requested
s, v: numeric vector of values to recycle as saturation and vibrance, respectively. The purpose is to improve visual distinction between adjacent and nearby colors in the color wheel.
...: additional arguments are passed to grDevices::rainbow():
start,end to control the starting and ending hue [0,1],
alpha for alpha opacity, default NULL adds no alpha,