Description Usage Arguments Value Author(s) References Examples
Fast wrapper for visualizing regions on a map.
1 2 | region_plot(sp, color, region, palette = c("darkblue", "blue", "white", "red",
"darkred"), by = 20, main = "")
|
sp |
SpatialPolygonsDataFrame object |
color |
Colour variable for filling |
region |
Grouping variable (the desired regions) |
palette |
Colour palette |
by |
Interval for colors |
main |
Plot title |
ggplot2 object
Leo Lahti louhos@googlegroups.com
See citation("gisfin")
1 | sp <- get_municipality_map("MML"); region_plot(sp, color = "Kieli_ni1", region = "kuntakoodi")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.