output
html_document md_document
keep_md
true
preserve_yaml

Example project for building maps by R interface

Useful links

library(geofi)
library(ggplot2)
municipalities <- get_municipalities(year = 2019, scale = 4500)
## [ows4R][INFO] OWSGetCapabilities - Fetching http://geo.stat.fi/geoserver/wfs?service=WFS&version=1.0.0&request=GetCapabilities 
## [ows4R][INFO] WFSGetFeature - Fetching http://geo.stat.fi/geoserver/wfs?service=WFS&version=1.0.0&typeName=tilastointialueet:kunta4500k_2019&logger=INFO&request=GetFeature 
## [ows4R][INFO] WFSDescribeFeatureType - Fetching http://geo.stat.fi/geoserver/wfs?service=WFS&version=1.0.0&typeName=tilastointialueet:kunta4500k_2019&request=DescribeFeatureType
ggplot(municipalities) + 
  geom_sf(aes(fill = as.integer(kunta))) +
  theme(legend.position = "none")