Learn R Programming

s2dverification (version 2.5.0)

clim.colors: Generate Climate Color Bar

Description

Generates a color bar with color ranges useful in climate temperature variable plotting. The original colors are: c("dodgerblue4", "dodgerblue1", "forestgreen", "yellowgreen", "white", "white", "yellow", "orange", "red", "saddlebrown")

Usage

clim.colors(n)

Arguments

n
Number of colors to generate.

Examples

Run this code
cols <- clim.colors(20)
lims <- seq(-1, 1, length.out = 21)
ColorBar(lims, cols)

Run the code above in your browser using DataLab