knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/" )
cityhoods is an R package for easy visualization of Finnish city administrative districts in 6 biggest cities: Helsinki, Espoo, Vantaa, Tampere, Turku and Oulu.
devtools::install_github("pitkant/cityhoods")
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.