View source: R/get_boundaries.R
get_boundaries | R Documentation |
This function obtains administrative boundaries for a specific date and type of unit, allowing users to specify the format of the returned object.
get_boundaries(
date,
type = c("magistrate", "bailiwick", "hundred", "court", "municipal", "contract",
"parish", "county", "pastorship", "diocese", "district_couryt"),
format = c("sf", "meta"),
boundary_type = c("polygons", "borders")
)
date |
A date for which the boundaries should be retrieved. |
type |
A character vector indicating the type of administrative unit (default options are available). Possible values include: "magistrate", "bailiwick", "hundred", "court", "municipal", "contract", "parish", "county", "pastorship", "diocese", and "district_couryt". |
format |
A character indicating the format of the returned object (default is "sf"). |
boundary_type |
A character string specifying the type of boundaries to return. Choose between "polygons" (default) for polygon shapes of the administrative units, and "borders" for the multiline border representation of the units. |
county_map <- get_boundaries(1800, "county")
plot(st_geometry(county_map))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.