spatialkernel (version 0.4-23)

metre: Plot Color Level Metre

Description

This is a simple function provided here for the convenience of users. It adds a key showing how the colors map to the values of an image plot.

Usage

metre(xl, yb, xr, yt, lab, cols = risk.colors(length(lab) - 1), shift = 0,
  cex = 1)

Arguments

xl

Left coordinate of the color level metre bar.

yb

Bottom coordinate of the color level metre bar.

xr

Right coordinate of the color level metre bar.

yt

Top coordinate of the color level metre bar.

lab

metre level labels in the metre.

cols

associated colours, defaults to use risk.colors.

shift

distance to shift the label texts away from the metre bar.

cex

numeric character expansion factor.

See Also

risk.colors