| numeric2col | R Documentation | 
Map numeric values to a colour map
numeric2col( num, colmap = grDevices::terrain.colors(100), breaks.length = length(colmap) )
| num | A numeric vector. The numbers which will be mapped to colours. | 
| colmap | A colour map. See  | 
| breaks.length | A single integer. Controls the number of
breaks in the discretisation of  | 
ns <- 16 sky <- CMBDataFrame(I = rnorm(12*ns^2), nside = ns) plot(sky, col = numeric2col(sky$I))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.