polygonAdjacency: Summarize Spatial Adjacency of Polygon Fabric

View source: R/polygonAdjacency.R

polygonAdjacencyR Documentation

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", ...)

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

Details

Examples are presented in this tutorial.

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

Author(s)

D.E. Beaudette


sharpshootR documentation built on Aug. 24, 2023, 5:07 p.m.