rOpenGov/geofi

Hyvinvointialueet

Closed this issue · 2 comments

First version of the manual implementation here both in Finnish and Swedish
77399fa

Please test if you are interested! Will release in CRAN next week after some holidays.

library(remotes)
install_github("ropengov/geofi", ref = "devel")
library(geofi)
library(dplyr)
library(sf)
library(ggplot2)

muni <- get_municipalities(year = 2021)
muni %>% 
  count(hyvinvointialue_name_fi,hyvinvointialue_name_sv,hyvinvointialue_code) %>% 
  ggplot(aes(label = hyvinvointialue_name_sv,fill = hyvinvointialue_code)) +
  geom_sf() + theme(legend.position = "none") +
  geom_sf_text()

Works for me at least, after loading the libraries geofi, dplyr, ggplot2