adjacency | R Documentation |
This mimics redist's redist.adjacency using GEOS to create the patterns, rather than sf. This is faster than that version, but forces projections.
adjacency(shp, epsg = 3857)
shp |
sf dataframe |
epsg |
numeric EPSG code to planarize to. Default is 3857. |
list with nrow(shp) entries
data(precincts)
adj <- adjacency(precincts)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.