Generate Climate Color Palettes
Generates a colorblind friendly color palette with color ranges useful in climate temperature variable plotting.
clim.palette(palette = "bluered") clim.colors(n, palette = "bluered")
palette |
Which type of palette to generate: from blue through white to red ('bluered'), from red through white to blue ('redblue'), from yellow through orange to red ('yellowred'), or from red through orange to red ('redyellow'). |
n |
Number of colors to generate. |
History:
0.0 - 2016-01 (N. Manubens, nicolau.manubens@bsc.es) - Original code.
lims <- seq(-1, 1, length.out = 21) ColorBar(lims, color_fun = clim.palette('redyellow')) cols <- clim.colors(20) ColorBar(lims, cols)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.