Description Usage Arguments Value See Also Examples
Create a colour palette by linear interpolation in RGB space
1 | RGBinterpolate(n=100, fromRGB, toRGB, bias =1.0)
|
n |
Length-1 |
fromRGB |
Name are hex representation of initial colour |
toRGB |
Name are hex representation of final colour |
bias |
Power for transformation of index |
a colour palette of length n+1
library(colorspace)
, ~~~
1 2 3 | colramp(RGBinterpolate(n=100,"green","red"))
colramp(RGBinterpolate(n=100,"green","red", bias =0.5))
colramp(c(RGBinterpolate(n=20,"green","red"),RGBinterpolate(n=30,"red","blue")))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.