Skip to content

mschnetzer/msmaps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

msmaps

Create custom maps for Europe and Austria (states, districts and municipalities)

Installation

devtools::install_github("mschnetzer/msmaps")

Dependencies

This package requires my custom ggplot2 theme. Please also install devtools::install_github("mschnetzer/msthemes").

Usage

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

About

Create maps for Europe and Austria

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages