Create custom maps for Europe and Austria (states, districts and municipalities)
devtools::install_github("mschnetzer/msmaps")
This package requires my custom ggplot2 theme. Please also install devtools::install_github("mschnetzer/msthemes")
.
There are four functions available. The Austrian maps are based on this github repository and delivered in the package.
The functions are plotEurope
, plotStatesAT
(for Austrian states), plotDistrictAT
(for Austrian districts) and plotMunicAT
(for Austrian municipalities) and have options:
dataset
Dataframe (must include 'iso' for geographic identification)
fillvar
Variable of interest (VOI)
colpal
Colors palette for discrete VOI, Low/High for continuous VOI
ownlabs
Add own labels with dataframe called ownlabels(iso, nudgex, nudgey, labname)
: default=FALSE
citylabs
Automatic regional capital labels (only for plotDistrictAT
and plotMunicAT
): default=FALSE
wienbezirke
Show Vienna districts separately (only for plotDistrictAT
): default=FALSE
legpos
Position of legend (not for plotEurope
): default="none"
tit
Title of plot
subtit
Subtitle of plot
captit
Caption of plot
savfile
Filename for saving
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.