n_subgraph {BoundaryStats} | R Documentation |
Number of subgraphs
Description
Statistical test the for number of subgraphs, or sets of contiguous boundary elements, in the data.
Usage
n_subgraph(x, null_distrib)
Arguments
x |
A SpatRaster object with boundary elements. |
null_distrib |
A list of probability functions output from boundary_null_distrib(). |
Value
The number of subgraphs in the raster and a p-value.
Author(s)
Amy Luo
References
Jacquez, G.M., Maruca,I S. & Fortin M.-J. (2000) From fields to objects: A review of geographic boundary analysis. Journal of Geographical Systems, 3, 221, 241.
Examples
data(T.cristatus)
T.cristatus <- terra::rast(T.cristatus_matrix, crs = T.cristatus_crs)
terra::ext(T.cristatus) <- T.cristatus_ext
T.crist_boundaries <- categorical_boundary(T.cristatus)
T.crist_bound_null <- boundary_null_distrib(T.cristatus, cat = TRUE, n_iterations = 100,
model = 'random_cluster')
n_subgraph(T.crist_boundaries, T.crist_bound_null)
[Package BoundaryStats version 2.1.1 Index]