powered by
Create a color generating function from a vector of colors
makeColorscheme(col)
a function that generates a vector of colors interpolated among the colors in col
col
a vector of colors
cs <- makeColorscheme( c('red','white','blue') ) cs(10) cs(10, alpha=.5)
Run the code above in your browser using DataLab