View source: R/general.purpuse.utilities.R
plotColorLegend | R Documentation |
Gradient legend
plotColorLegend(
x0,
x1,
y0,
y1,
col,
at,
legend,
title = NULL,
title.adj = c(0, -0.5),
horizontal = FALSE
)
x0 , x1 , y0 , y1 |
rectange coordinates of the legend in nfc coordinates |
col |
vector of colors (full gradient) |
at |
indexes (of col vector) to place tics |
legend |
tics labels |
title |
legend title |
title.adj |
legend title adj parameter to be passed to text function |
plot(1)
plotColorLegend(0.4,0.5,0.8,0.3,getPal(n=100),0:10*10,1:10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.