ezColorLegendGG2: Plots a color scale with ggplot2

View source: R/plots.R

ezColorLegendGG2R Documentation

Plots a color scale with ggplot2

Description

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

Usage

ezColorLegendGG2(
  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

ezColorLegendGG2()

uzh/ezRun documentation built on April 29, 2024, 10:31 a.m.