Prints an annotated vertical bar coloured according to a continuous palette.
SpectrumLegend(
x0 = 0.05,
y0 = 0.05,
x1 = x0,
y1 = y0 + 0.2,
absolute = FALSE,
legend = character(0),
palette,
lwd = 4,
lty = 1,
lend = "square",
cex = 1,
text.col = par("col"),
font = NULL,
text.font = font,
title = NULL,
title.col = text.col[1],
title.cex = cex[1],
title.adj = 0.5,
title.font = 2,
pos = 4,
...
)
Coordinates of the bottom-left and top-right end of the bar.
Logical specifying whether x
and y
values denote
coordinates (TRUE
) or relative position, where (0, 0) denotes the
bottom-left of the plot area and (1, 1) the top right.
Character vector with which to label points on palette
.
Colour palette to depict.
Additional parameters to segments()
,
controlling line style.
Character expansion factor relative to current par("cex")
.
Colour used for the legend text.
Font used for the legend text; see text()
.
Text to display
Colour for title; defaults to text.col[1]
.
Expansion factor(s) for the title, defaults to cex[1]
.
Horizontal adjustment for title: see the help for
par("adj")
.
Font used for the legend title.
Additional parameters to text()
.
This function is now deprecated; it has been superseded by the more capable
PlotTools::SpectrumLegend()
and will be removed in a future release.