generate a vector of gradient colors by start, mid, and end colors.

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