README.md

leipzigr

Installation

if (!require("devtools")) install.packages("devtools")
devtools::install_github("nrkoehler/leipzigr")

Functions

This R package provides some functions I frequently use. That is:

Data

Moreover, it contains datasets providing geospatial data of the German city of Leipzig. Leipzig is divided into 10 greater adminsitrative districts ("Stadtbezirke") and 63 smaller local districts ("Ortsteile"). The names of both smaller and greater districts can be found under the following link. With the data frames shape.bezirke and shape.ortsteile the package contains data to plot the boundaries of both greater adminsitrative and smaller local districts.

Greater administrative boundaries

The data frame shape.bezirke contains 10.979 observations and 4 variables. That is:

Smaller local boundaries

The data frame shape.ortsteile contains 20.822 observations and 4 variables. That is:

Examples

library(ggplot2)
library(leipzigr)
ggplot(aes(x = lon, y = lat), data = shape.ortsteile) + theme_void() + coord_quickmap() + 
    geom_polygon(aes(x = lon, y = lat, group = group), fill = NA, size = 0.2, 
        color = "grey") + geom_polygon(aes(x = lon, y = lat, group = group), 
    color = "black", size = 1, fill = NA, data = shape.bezirke) + labs(title = "Map of Leipzig", 
    caption = "Boundaries of greater administrative and smaller local districts.")



nrkoehler/leipzigr documentation built on June 1, 2019, 12:50 a.m.