GP.create.cols | R Documentation |
Create 256 colors gradually transitioning from Blue to Yellow to Red.
GP.create.cols(num = 256L)
num |
A integer number to specify the number of colors to generate. The default value is 256. |
A vector of RGB colors
Jian Kang <jiankang@umich.edu>
colors = GP.create.cols(101L) require(graphics) filled.contour(volcano,col=colors,nlevels=length(colors)-1,asp=1) filled.contour(volcano,color.palette = GP.create.cols, nlevels=256, asp = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.