Description Usage Arguments Value Author(s)
Draws a simple color legend/bar.
1 | colorLegend(x = 0, y = 0, min.x, max.x, colramp = colorRampPalette(brewer.pal(11, "RdBu"))(255), nr.cols = 13, height = 5, width = 0.8)
|
x |
x position on the plot where to place the bar. |
y |
y position on the plot. |
min.x |
smallest value to be drawn on the bar. |
max.x |
largest value. |
colramp |
the color ramp. |
nr.cols |
number of colors to be drawn. |
height |
the height of the color bar. |
width |
the width of the color bar |
Draws a color legend/bar.
Johannes Rainer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.