color.bar {frechet}R Documentation

Generate color bar/scale.

Description

Generate color bar/scale.

Usage

color.bar(
  colVal = NULL,
  colBreaks = NULL,
  min = NULL,
  max = NULL,
  lut = NULL,
  nticks = 5,
  ticks = NULL,
  title = NULL
)

Arguments

colVal

A numeric vector giving the variable values to which each color is corresponding. It overrides min (and max) if min > min(colVal) (max < max(colVal)).

colBreaks

A numeric vector giving the breaks dividing the range of variable into different colors. It overrides min and max.

min

A scalar giving the minimum value of the variable represented by colors.

max

A scalar giving the maximum value of the variable represented by colors.

lut

Color vector. Default is
colorRampPalette(colors = c("pink","royalblue"))(length(colBreaks)-1).

nticks

An integer giving the number of ticks used in the axis of color bar.

ticks

A numeric vector giving the locations of ticks used in the axis of color bar; it overrides nticks.

title

A character giving the label of the variable according to which the color bar is generated.

Value

No return value.


[Package frechet version 0.3.0 Index]