View source: R/helper_functions.R
SpectrumLegend | R Documentation |
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,
...
)
x0 , y0 , x1 , y1 |
Coordinates of the bottom-left and top-right end of the bar. |
absolute |
Logical specifying whether |
legend |
Character vector with which to label points on |
palette |
Colour palette to depict. |
lwd , lty , lend |
Additional parameters to |
cex |
Character expansion factor relative to current |
text.col |
Colour used for the legend text. |
font , text.font |
Font used for the legend text; see |
title |
Text to display |
title.col |
Colour for title; defaults to |
title.cex |
Expansion factor(s) for the title, defaults to |
title.adj |
Horizontal adjustment for title: see the help for
|
title.font |
Font used for the legend title. |
pos , ... |
Additional parameters to |
This function is now deprecated; it has been superseded by the more capable
PlotTools::SpectrumLegend()
and will be removed in a future release.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.