makeColorscheme | R Documentation |
Create a color generating function from a vector of colors
makeColorscheme(col)
col |
a vector of colors |
a function that generates a vector of colors interpolated among the colors in col
cs <- makeColorscheme( c('red','white','blue') )
cs(10)
cs(10, alpha=.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.