This function utilizes the spdep
and igraph
packages to evaluate several measures of spatial connectivity.
polygonAdjacency(x, v = "MUSYM", ...)
sf
object containing simple polygon features, some of which should share edges
character, name of column in attribute table describing map unit labels
additional arguments passed to spdep::poly2nb()
a list
containing:
commonLines
: an integer vector of feature IDs, describing polygons sharing edges and values of v
(map unit labels)
adjMat
: weighted adjacency matrix, suitable for visualization with plotSoilRelationGraph()
Examples are presented in this tutorial.