powered by
Creates colour gradient between two hexcodes.
cg(colour1, colour2, n = 15)
A vector of hexcodes of length n, containing a colour gradient between colour =1 and colour2.
The first hexcode colour.
The second hexcode colour.
The length of the vector returned by the function.
cg("white","black",20)
Run the code above in your browser using DataLab