cg | R Documentation |
Creates colour gradient between two hexcodes.
cg(colour1, colour2, n = 15)
colour1 |
The first hexcode colour. |
colour2 |
The second hexcode colour. |
n |
The length of the vector returned by the function. |
A vector of hexcodes of length n, containing a colour gradient between colour =1 and colour2.
cg("white","black",20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.