This function can be use to quickly generate a choropleth
map from a SpatialPolygonsDataFrame
.
1 2 |
x |
a |
col.by |
a column name of x giving values to color polygons. |
breaks |
a numeric vector of cut points or a single number of intervals. |
alpha |
a numeric to control the transparency. |
col |
a vector of color usually generated by color palettes functions. |
popup |
a character vector providing popup content. |
... |
additional arguments which can be passed to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.