ezColorLegend | R Documentation |
Plots a color scale with colors derived from getBlueRedScale()
.
ezColorLegend(
colorRange = c(-3, 3),
colors = getBlueRedScale(),
vertical = TRUE,
at = seq(from = colorRange[1], to = colorRange[2], by = by.label),
labels = as.character(at),
by.label = 0.5
)
colorRange |
two numerics specifying the range to plot to the axis. |
colors |
a character vector containing colors. |
vertical |
a logical indicating whether to plot vertically. |
at |
a numeric vector specifying where to put axis ticks. |
labels |
a character vector specifying the axis labels. |
by.label |
a numeric specifying the interval between axis labels. |
Rehrauer, Hubert
Schmid, Peter
ezColorLegend()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.