Learn R Programming

sharpshootR (version 2.3)

polygonAdjacency: Summarize Spatial Adjacency of Polygon Fabric

Description

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

Usage

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

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

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

Author

D.E. Beaudette

Details

Examples are presented in this tutorial.