Description Usage Arguments Value Examples
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.
1 2 3 4 5 6 7 8 9 10 |
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 |
|
A ggplot object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## 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
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.