plotDK {plotDK} | R Documentation |
Generate choropleth maps of Danish Municipalities, Regions, Provinces and Zip-areas
Description
Draws a map that highligths any value of interest across either danish municipalities, regions, provinces or zip-codes. This is essentially a ggplot2-wrapper incorporating geoms of danish municipalities, regions, provinces and zipcodes. Therefore the output is compatible with further ggplot2 elements.
Usage
plotDK(
data = NULL,
id = NULL,
value = NULL,
plotlevel = "municipality",
show_missing = FALSE,
show_borders = TRUE,
interactive = FALSE,
titel = NULL
)
Arguments
data |
A |
id |
A For municipalities these variables can be either;
For regions these variables can either;
For provinces these variables can be either;
For zip-codes these variables can be;
|
value |
|
plotlevel |
|
show_missing |
|
show_borders |
|
interactive |
|
titel |
|
Value
A ggplot object.
Examples
## Empty plot
plotDK()
province_data <- data.frame(
province_name = c(
"nordjylland",
"østjylland",
"vestjylland",
"fyn",
"sydjylland",
"vest-ogsydsjælland",
"østsjælland",
"københavnsomegn",
"byenkøbenhavn",
"bornholm",
"nordsjælland"
),
value = 1:11,
stringsAsFactors = FALSE
)