Learn R Programming

sharpshootR (version 1.8)

polygonAdjacency: Evaluate Spatial Adjacency of SpaitialPolygonsDataFrame Objects

Description

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

Usage

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

Arguments

x

a SpatialPolygonsDataFrame object

v

name of the field in the attribute table to use when searching for `common lines`, see details

additional arguments passed to spdep::poly2nb

Value

A list object containing:

commonLines

An integer vector of feature IDs, that share a common boundary and attribute v.commonLines. Sometimes referred to as "common soil lines".

adjMat

A weighted adjacency matrix

Details

Examples are presented in this tutorial.