README.md

Please note: I am currently extremely busy and will not have time to work on this package before summer 2017. If you have requests or additions you would like me to add please make a pull request or add an issue and I will look at it as soon as I have time.

This is a package for making easy maps of Denmark.

Currently, the package allows you to do three things:

make basic maps of Denmark

turn these maps into (static) choropleth maps

plot longitude-latitude points on a map of Denmark

I recommend you install the development version from github, using Hadley Wickham's devtools package:

You can control the level of the map by specifying the detail argument. Currenty, mapDK accepts the following arguments

municipality - plots Denmark's 98 municipalities

region - plots Denmark's 5 regions

rural - plots Denmark's 11 rural areas

zip - plots Denmark's 598 zip code areas

polling - plots Denmark's 1385 polling places (as of 2015)

parish - plots Denmark's 1931 parishes

Choropleth Maps

mapDK also allows you to create static choropleth maps using either the package's build in datasets, or new datasets provided by the user.

Plot Municipality Level Data

To create a static choropleth map at the municipality level we can use some data about burglaries in Denmark (included in the package).

One creates a choropleth map simply by specifying the values and id's (as strings) and the dataset in the call to mapDK

mapDK(values="indbrud", id="kommune", data=crime)

If you don't provide names for all municipalities, the function will throw a warning.

Plot Polling Place Data

You can create cool maps of election results at the polling place level by specifying detail = "polling". The package includes a dataset of Danish general election 2011 results at the polling level. Below, we plot Socialdemokratiets election results in percent at each available polling place in the map dataset

Plot points on a map of Denmark

You can provide your own data set of longitude-latitude points (in WGS84) and plot them on a map of Denmark using the pointDK function. Below, I plot a data set of benches in Copenhagen available in the package