shading | R Documentation |
Creates an object of class shading
by directly specifying break values and (optionally) colours.
shading(breaks, cols = brewer.pal(length(breaks), "Reds"))
breaks |
The break points |
cols |
The shading colours - there should be one more of these than break points. |
An object of class shading
.
At the moment, the it is assumed that the number of shading colours is one more than the break points, but this is not checked.
Chris Brunsdon
choropleth
,choro.legend
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.