Get grid layout of Dutch provinces
nl_prov_grid1 = geofacet::nl_prov_grid1
class(nl_prov_grid1) = "data.frame"
nl_prov_grid1 = nl_prov_grid1 |>
mutate(name = ifelse(name == "Friesland", "Fryslan", name)) |>
select(-code)
Join with NLD datasets in tmap
The map
tm_shape(NLD_dist2) +
tm_fill("edu_appl_sci", fill.legend = tm_legend("Percentage")) +
tm_facets_grid(rows = "row", columns = "col") +
tm_shape(NLD_muni2) +
tm_borders(lwd = 1) +
tm_facets_grid(rows = "row", columns = "col") +
tm_shape(NLD_prov2) +
tm_borders(lwd = 2) +
tm_facets_grid(rows = "row", columns = "col") +
tm_layout(panel.show = FALSE) +
tm_title("Population share (age 15-75) with scientific (incl. applied) degree")
#> [plot mode] fit legend/component: Some legend items or map compoments do not
#> fit well, and are therefore rescaled.
#> ℹ Set the tmap option `component.autoscale = FALSE` to disable rescaling.