Generates a smooth colour gradient
colGrad(x, darken = 1)
Number of colours required
Multiplication factor. Must be less than 1. Smaller the darker.
Generates a smooth colour gradient Goes from red to red/green to green to green/blue to blue to blu/red
Returns vector of RGB colours
gradientColors <- colGrad(10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.