View source: R/general.purpuse.utilities.R
plotColorLegend2 | R Documentation |
Wrapper for plotColorLegend to plot legend for given range
plotColorLegend2(
x0 = NULL,
x1 = NULL,
y0 = NULL,
y1 = NULL,
zlim,
fullzlim = zlim,
zfun = identity,
z2col = num2col,
N = 100,
ntic = 5,
leg = NULL,
title = NULL,
title.adj = c(0, -0.5),
horizontal = FALSE
)
x0 , x1 , y0 , y1 |
rectange coordinates of the legend in nfc coordinates |
zlim |
numeric vector with two items. Range to show, trimmed to fullzlim if wider. |
fullzlim |
numeric vector with two items. Full range to be considered. |
zfun |
transformation for value (gradient will be drawn along transformed value). Identity, log1p, sqrt, ets. |
z2col |
function to transform numbers to colors |
N |
number of steps in the gradient |
ntic |
desired number of tics |
leg |
tics values, if NULL (default) estimated automatically |
title |
legend title |
title.adj |
legend title adj parameter to be passed to text function |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.