Generate color bar/scale.
color.bar(
colVal = NULL,
colBreaks = NULL,
min = NULL,
max = NULL,
lut = NULL,
nticks = 5,
ticks = NULL,
title = NULL
)
No return value.
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)
).
A numeric vector giving the breaks dividing the range of variable into different colors. It overrides min
and max
.
A scalar giving the minimum value of the variable represented by colors.
A scalar giving the maximum value of the variable represented by colors.
Color vector. Default is
colorRampPalette(colors = c("pink","royalblue"))(length(colBreaks)-1)
.
An integer giving the number of ticks used in the axis of color bar.
A numeric vector giving the locations of ticks used in the axis of color bar; it overrides nticks
.
A character giving the label of the variable according to which the color bar is generated.