Description Usage Arguments Value Author(s) See Also
View source: R/addBreakColorLegend.R
Adds a Legend to sp Plots with Colors and Breaks
1 2 | addBreakColorLegend(xleft, ybottom, xright, ytop, breaks, colors,
printFormat = "4.2", ...)
|
xleft |
a scalar of the left x position. |
ybottom |
a scalar of bottom y position. |
xright |
a scalar of the right x position. |
ytop |
a scalar of top y position. |
breaks |
the breaks between color classes. Needs a lower bound, and upper bound, so there should be one more break than number of classes. |
colors |
a vector of colors, should have one less element than the number of breaks. |
printFormat |
a character variable in '4.2' format where the 4 control the number of digits before the decimal, and 2 controls the number of digits after the decimal. |
... |
other arguments passed from the |
add a color ramp legend as a rectangle to the currently active plot
Jay Ver Hoef
rect
,
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.