All Projects → Nowosad → sabre

Nowosad / sabre

Licence: Unknown, MIT licenses found Licenses found Unknown LICENSE MIT LICENSE.md
sabre: Spatial Association Between REgionalizations

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to sabre

Googleway
R Package for accessing and plotting Google Maps
Stars: ✭ 187 (+450%)
Mutual labels:  spatial, spatial-analysis
Intro to spatial analysis
Intro to spatial analysis in R
Stars: ✭ 28 (-17.65%)
Mutual labels:  spatial, spatial-analysis
belg
Boltzmann entropy of a landscape gradient
Stars: ✭ 14 (-58.82%)
Mutual labels:  entropy, spatial
st-hadoop
ST-Hadoop is an open-source MapReduce extension of Hadoop designed specially to analyze your spatio-temporal data efficiently
Stars: ✭ 17 (-50%)
Mutual labels:  spatial, spatial-analysis
rsgislib
Remote Sensing and GIS Software Library; python module tools for processing spatial data.
Stars: ✭ 103 (+202.94%)
Mutual labels:  spatial, spatial-analysis
GoogleMap Demo
GoogleMap一些常用API总结库
Stars: ✭ 24 (-29.41%)
Mutual labels:  polygons
san
Spatial Modelling for Data Scientists
Stars: ✭ 63 (+85.29%)
Mutual labels:  spatial-analysis
libzinc
Zinc is a C++ library for spatial processing.
Stars: ✭ 39 (+14.71%)
Mutual labels:  spatial
spatialwidget
Utility package to convert R data into JSON for use in htmlwidget mapping libraries
Stars: ✭ 17 (-50%)
Mutual labels:  spatial
moac
Generate passwords and analyze their strength given physical limits to computation
Stars: ✭ 16 (-52.94%)
Mutual labels:  entropy
gdstk
Gdstk (GDSII Tool Kit) is a C++/Python library for creation and manipulation of GDSII and OASIS files.
Stars: ✭ 171 (+402.94%)
Mutual labels:  polygons
spatial-microsim-book
Code, data and prose of the book: Spatial Microsimulation with R
Stars: ✭ 98 (+188.24%)
Mutual labels:  spatial
geotidy
Tidy manipulation of spatial data
Stars: ✭ 31 (-8.82%)
Mutual labels:  spatial
clipper
Implementation for the clipper library in rhino and grasshopper.
Stars: ✭ 55 (+61.76%)
Mutual labels:  polygons
triangula
Generate high-quality triangulated and polygonal art from images.
Stars: ✭ 3,775 (+11002.94%)
Mutual labels:  polygons
geo
Geospatial primitives and algorithms for Crystal
Stars: ✭ 17 (-50%)
Mutual labels:  polygons
topo
A Geometry library for Elixir that calculates spatial relationships between two geometries
Stars: ✭ 125 (+267.65%)
Mutual labels:  spatial-analysis
sdmTMB
🌎 An R package for spatial and spatiotemporal GLMMs with TMB
Stars: ✭ 92 (+170.59%)
Mutual labels:  spatial-analysis
Crop-Yield-Prediction-Using-Satellite-Imagery
No description or website provided.
Stars: ✭ 44 (+29.41%)
Mutual labels:  spatial-analysis
squidpy
Spatial Single Cell Analysis in Python
Stars: ✭ 235 (+591.18%)
Mutual labels:  spatial-analysis

sabre

CRAN status R-CMD-check codecov CRAN RStudio mirror downloads

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 sf, RasterLayer, SpatRaster, and stars spatial objects, and the following methods:

  • the V-measure method (Nowosad and Stepinski, 2018)
  • the MapCurve method (Hargrove et al., 2006)

Installation

You can install the released version of sabre from CRAN with:

install.packages("sabre")

You can install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("Nowosad/sabre")

Example

We use two simple regionalization, regions1 and regions2 to show the basic concept of calculating a degree of spatial association.

library(sabre)
library(sf)
data("regions1")
data("regions2")

The first map, regions1 consists of four regions of the same shape and size, while the second one, regions2 has three irregular regions.

The 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:

  • x - an sf object containing the first regionalization
  • x_name - a name of the column with regions names of the first regionalization
  • y - an sf object containing the second regionalization
  • y_name - a name of the column with regions names of the second regionalization
regions_vm = vmeasure_calc(x = regions1, y = regions2, x_name = z, y_name = z)

The result is a list with three metrics of spatial association - V-measure, Homogeneity, Completeness - and two sf objects with preprocessed input maps - $map1 and $map2.

regions_vm
#> The SABRE results:
#> 
#>  V-measure: 0.36 
#>  Homogeneity: 0.32 
#>  Completeness: 0.42 
#> 
#>  The spatial objects can be retrieved with:
#>  $map1 - the first map
#>  $map2 - the second map

Both spatial outputs have two columns. The first one contains regions’ names/values and the second one (rih) describes regions’ inhomogeneities.

plot(regions_vm$map1["rih"], main = "Map1: rih")
plot(regions_vm$map2["rih"], main = "Map2: rih")

More examples can be found in the package vignette and in the sabre: or how to compare two maps? blog post.

Logo

Hex logo was created with hexmake using icons made by Smashicons and Creaticca Creative Agency from www.flaticon.com.

References

  • Nowosad, Jakub, and Tomasz F. Stepinski. “Spatial association between regionalizations using the information-theoretical V-measure.” International Journal of Geographical Information Science (2018). https://doi.org/10.1080/13658816.2018.1511794
  • Rosenberg, Andrew, and Julia Hirschberg. “V-measure: A conditional entropy-based external cluster evaluation measure.” Proceedings of the 2007 joint conference on empirical methods in natural language processing and computational natural language learning (EMNLP-CoNLL). 2007.
  • Hargrove, William W., Forrest M. Hoffman, and Paul F. Hessburg. “Mapcurves: a quantitative method for comparing categorical maps.” Journal of Geographical Systems 8.2 (2006): 187.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].