knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/"
)

cityhoods

cityhoods is an R package for easy visualization of Finnish city administrative districts in 6 biggest cities: Helsinki, Espoo, Vantaa, Tampere, Turku and Oulu.

Installation

devtools::install_github("pitkant/cityhoods")

Usage

Currently implemented are 2 functions:

Included with the package are 3 datasets from the city of Turku.

library(cityhoods)
get_areas(city = "turku", level = 1, draw = TRUE)
get_areas(city = "helsinki", level = 2, draw = TRUE)

Function for data visualization is currently very much WIP and experimental and works only with level 3 data from city of Turku. Since it contains interactive menu elements it will not be reproduced in this readme, but see and try for yourself!

visualize_data(city = "turku", level = 3, dataset = turku_vaesto_ika_2010_2019)


pitkant/cityhoods documentation built on Feb. 18, 2021, 12:08 a.m.