region_plot: Fast wrapper for visualizing regions on a map

Description Usage Arguments Value Author(s) References Examples

Description

Fast wrapper for visualizing regions on a map.

Usage

1
2
region_plot(sp, color, region, palette = c("darkblue", "blue", "white", "red",
  "darkred"), by = 20, main = "")

Arguments

sp

SpatialPolygonsDataFrame object

color

Colour variable for filling

region

Grouping variable (the desired regions)

palette

Colour palette

by

Interval for colors

main

Plot title

Value

ggplot2 object

Author(s)

Leo Lahti louhos@googlegroups.com

References

See citation("gisfin")

Examples

1
sp <- get_municipality_map("MML"); region_plot(sp, color = "Kieli_ni1", region = "kuntakoodi") 

rOpenGov/gisfin documentation built on May 26, 2019, 8:48 p.m.