generate a vector of gradient colors by start, mid, and end
colors.
Usage
gradient_color(n, start, mid = NULL, end = "#FFFFFF")
Arguments
- n
the length of vector
- start
start color in hex format
- mid
mid color in hex format, default is null.
- end
end color in hex format, default is white.
Value
a vector of gradient colors