Learn R Programming

s2dverification (version 2.4.0)

ColorBar: Draws Color Bar

Description

Creates a horizontal or vertical colorbar to introduce in multipanels.

Usage

ColorBar(brks, cols = NULL, vert = TRUE, subsampleg = 1, cex = 1)

Arguments

Examples

Run this code
cols <- c("dodgerblue4", "dodgerblue1", "forestgreen", "yellowgreen", "white",
          "white", "yellow", "orange", "red", "saddlebrown")
lims <- seq(-1, 1, 0.2)
ColorBar(lims, cols)

Run the code above in your browser using DataLab