Learn R Programming

mapmisc (version 1.2.1)

legendBreaks: Legends for colour scale

Description

Legends where N+1 labels are supplied as the limits of N bins.

Usage

legendBreaks(pos, 
	breaks,     
	col,    legend,
    rev=TRUE,
    outer=TRUE,
    pch=15,
    bg=par('bg'),
    cex=par('cex'),
    pt.cex=2.5*cex,
    text.col=par('fg'),
    title=NULL,
    inset=0.05,
    title.col=text.col,
    adj=0,
    y.intersp,
	...)

Arguments

pos
Position, as specified in the legend function.
breaks
Optional list with elements col and legend, such as the output from colourScale
col
Single colour or vector of colours for each bin
legend
vector of labels for the legend, one more element than there are colours
rev
if TRUE, labels and colours are ordered from bottom to top, otherwise top to bottom.
outer
If TRUE, put legend in the margin of the plot
pch
see legend
bg
background colour see legend
cex
see legend
pt.cex
see legend
text.col
see legend
title
see legend
inset
see legend
title.col
see legend
adj
Adjustment of the legend labels relative to plotting symbols.
y.intersp
see legend
...
Additional arguments passed to legend.

Value

Details

A legend for 'z-axis' colour scales.

See Also

colourScale