This function utilizes the spdep and igraph packages to evaluate several measures of spatial connectivity.

polygonAdjacency(x, v = "MUSYM", ...)

Arguments

x

sf object containing simple polygon features, some of which should share edges

v

character, name of column in attribute table describing map unit labels

...

additional arguments passed to spdep::poly2nb()

Value

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()

Details

Examples are presented in this tutorial.

Author

D.E. Beaudette