keyWindow: Plots a color keymap.

Description Usage Arguments See Also Examples

View source: R/graphutils.R

Description

Plots a standalone keymap on its own window.

Usage

1
2
keyWindow(levels, colors, side = 4, border = NULL, mar = rep(0.2, 4),
  spc = 1, barw = 0.5, ...)

Arguments

levels

Values that should be plotted.

colors

Corresponding colors.

side

On which side should the legend be plotted.

border

Color of the border.

mar

Size of the margins.

spc

A parameter that contracts (spc < 1) or expands (z>1) the size of the keymap.

barw

Width of the keymap.

...

Parameters passed to text function.

See Also

rect text contourf

Examples

1
2
3
4
keyWindow(1:10, side=4)
keyWindow(1:10, side=1)
keyWindow(1:10, side=4, spc=0.6)
keyWindow(1:10, side=4, barw=0.2)

tunelipt/wutils documentation built on Nov. 5, 2019, 11:01 a.m.