Description Usage Arguments Value Examples
get_neighbor()
get neighbors from an spatial object with class sfc_MULTIPOLYGON
and returns a list object with class equal to "vizi".
1 | get_neighbor(shapefile, tipo = "Queen")
|
shapefile |
A spatial object of class |
tipo |
type of neighbor. |
An object vizi
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
# Import
nc <- sf::read_sf(system.file("gpkg/nc.gpkg", package = "sf"))
# Get the neighbor
l_nb <- get_neighbor(nc, "Queen")
# Visualize
view_connections(l_nb)
view_neighbor(l_nb)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.