ezColorLegend: Plots a color scale

View source: R/plots.R

ezColorLegendR Documentation

Plots a color scale

Description

Plots a color scale with colors derived from getBlueRedScale().

Usage

ezColorLegend(
  colorRange = c(-3, 3),
  colors = getBlueRedScale(),
  vertical = TRUE,
  at = seq(from = colorRange[1], to = colorRange[2], by = by.label),
  labels = as.character(at),
  by.label = 0.5
)

Arguments

colorRange

two numerics specifying the range to plot to the axis.

colors

a character vector containing colors.

vertical

a logical indicating whether to plot vertically.

at

a numeric vector specifying where to put axis ticks.

labels

a character vector specifying the axis labels.

by.label

a numeric specifying the interval between axis labels.

Author(s)

Rehrauer, Hubert

Schmid, Peter

Examples

ezColorLegend()

uzh/ezRun documentation built on Dec. 26, 2024, 9:53 a.m.