Legends where N+1 labels are supplied as the limits of N bins.
legendBreaks(pos,
breaks,
col, legend,
rev=TRUE,
outer=TRUE,
pch=15,
bg='white',
cex=par('cex'),
pt.cex=2.5*cex,
text.col=par('fg'),
title=NULL,
inset=0.05,
title.col=text.col,
adj=0,
width=Inf,
lines=Inf,
y.intersp,
...)
Result of call to legend
Position, as specified in the legend
function.
Optional list with elements col
and legend
, such as the
output from colourScale
Single colour or vector of colours for each bin
vector of labels for the legend, one more element than there are colours
if TRUE
, labels and colours are ordered from bottom to top, otherwise top to bottom.
If TRUE
, put legend in the margin of the plot
see legend
background colour see legend
see legend
see legend
see legend
see legend
see legend
see legend
Adjustment of the legend labels relative to plotting symbols.
Maximum number of characters before a line break is added to the legend labels
Maximum number of lines in each legend label
see legend
Additional arguments passed to legend
.
A legend for 'z-axis' colour scales.
colourScale