Adds a series of colors mapped to a value

colorbar(breaks, col, text.col = "white", labels = TRUE, maxleft = 0.95)

Arguments

breaks

a set of finite numeric breakpoints for the colours (see image

col

a list of colors (see image

text.col

axis and text label color

labels

labels for tick marks - see axis

maxleft

Extent the left hand for colorbar

Value

A plot

Note

Much of this was taken from vertical.image.legend from the aqfig package