| ClimPalette | R Documentation |
Generates a colorblind friendly color palette with color ranges useful in climate temperature variable plotting.
ClimPalette(palette = "bluered")
ClimColors(n, palette = "bluered")
palette |
A character string of palette. The current choices:
|
n |
A number indicating how many colors to generate. |
ClimPalette() returns the function that generates the color palette and the
attribute 'na_color'.
ClimColors() returns a vector of the colors.
lims <- seq(-1, 1, length.out = 21)
cb <- ColorBarContinuous(lims, color_fun = ClimPalette('redyellow'), plot = FALSE)
cols <- ClimColors(20)
cb <- ColorBarContinuous(lims, cols, plot = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.