Saved for Leeds due to size constraints
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
u = "https://borders.ukdataservice.ac.uk/ukborders/easy_download/prebuilt/shape/England_ed_1981.zip"
ed1981 = duraz(u)
ed1981 = sf::st_transform(ed1981, 4326)
object.size(ed1981) / 1000000 # 143 mb
object.size(ed1981_simple) / 1e6 # mb
ed_cents = st_centroid(ed1981_simple)
ed_cents_lds = ed_cents[leeds, ]
ed1981 = ed1981[ed_cents_lds, ]
mapview::mapview(ed1981)
devtools::use_data(ed1981)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.