The sabre (Spatial Association Between REgionalizations) is an R package for calculating a degree of spatial association between regionalizations or categorical maps. This package offers support for
RasterLayer spatial objects, and the following methods:
You can install the released version of
sabre from CRAN with:
You can install the development version from GitHub with:
We use two simple regionalization,
regions2 to show the basic concept of calculating a degree of spatial association.
The first map,
regions1 consists of four regions of the same shape and size, while the second one,
regions2 has three irregular regions.
vmeasure_calc() function allows for calculation of a degree of spatial association between regionalizations or categorical maps using the information-theoretical V-measure. It requires, at least, four arguments:
sfobject containing the first regionalization
x_name- a name of the column with regions names of the first regionalization
sfobject containing the second regionalization
y_name- a name of the column with regions names of the second regionalization
The result is a list with three metrics of spatial association -
Completeness - and two
sf objects with preprocessed input maps -
Both spatial outputs have two columns. The first one contains regions’ names/values and the second one (
rih) describes regions’ inhomogeneities.
Additionally, examples presented in the Spatial association between regionalizations using the information-theoretical V-measure article can be reproduced using data available at http://sil.uc.edu/cms/index.php?id=data-1#vmeasure.