Usage
magbar(position = "topright", range = c(0, 1), orient = "v", log = FALSE,
col = hsv(h = seq(2/3, 0, len = 100)), scale = c(1/4, 1/20), inset = 1/40,
labN = 5, title = "", titleshift = 0, centrealign = "rb")
Arguments
position
Relative position of the colour bar. This argument is used like the 'legend' function. Specify one of 'bottom', 'bottomleft', 'left', 'topleft', 'top', 'topright', 'right', 'bottomright' and 'centre'.
range
The text label limits used to label the colour bar.
orient
Orientation. Allowed options are 'v' for vertical and 'h' for horizontal.
log
Should the colour spacing and labelling be log spaced.
col
Colour palette to use for the colouring of the bar.
scale
The relative (to the plot window) length and width of the colour bar.
inset
Relative (to the plot window) inset of the colour bar.
labN
The number of text labels to draw on the colour bar.
title
Optional title (or axis label for the labels) to add to the colour bar.
titleshift
Extra shift to apply to the 'title' position.
centrealign
Option to control the labeling position used when the position='centre'.