# NOT RUN {
UK_coords = loadCoordUK(unit = "country", year = "2020")
str(UK_coords)
library(tmap)
tm_shape(UK_coords) + tm_borders()
library(mapview)
mapview(UK_coords)
# }
# NOT RUN {
## Load subset
coords_uk <- loadCoordUK(unit = "county", unit_subset = "england", matchWith = "country")
coords_uk <- loadCoordUK(unit = "county", unit_subset = "hartlepool", matchWith = "county")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab