MyNixOS website logo
Description

Spatial Dispersion Index (SDI) Family of Metrics for Spatial/Geographic Networks.

Spatial Dispersion Index (SDI) is a generalized measurement index, or rather a family of indices to evaluate spatial dispersion of movements/flows in a network in a problem neutral way as described in: Gencer (2023) <doi:10.1007/s12061-023-09545-8>. This package computes and optionally visualizes this index with minimal hassle.

rSDI: Spatial Dispersion Index (SDI) for R

This package provides functions for calculating Spatial Dispersion Index (Gençer, 2023) for R, and its visualization.

Spatial Dispersion Index (SDI) is a family of indices to measure spatial range of relations in a spatial/geographic network. The index was developed as part of a large-scale socio-economic study on flows between cities, and has proven itself useful for evaluating spatial range of flows for the whole networ or its nodes.

This package provides all variants of SDI as described in the paper (Gençer, 2023) and also provides functions to visualize index measurements on a network visualization plotted as a graph on a geographic map or a spatial base plate of your choosing.

Installation

Install latest release from CRAN:

install.packages("rSDI")

or if you want to install the development version:

install_github("ehengirmen/rSDI")

Usage

To use rSDI you will need either (i) two data frames, one containing flows between vertices of a geographic/spatial network and another containing coordinates and labels of vertices, or (i) an igraph object having appropriate vertex and edge attributes for rSDI computation. For vertices one needs either (x,y) or (longitude,latitude) attributes and for edges a weight attribute representing flows.

The package provides a dataset of migration between Turkish cities containing two data frames:

head(TurkiyeMigration.flows)
head(TurkiyeMigration.nodes)

You can use these in tow ways described above as:

TMSDI <- SDI(TurkiyeMigration.flows, TurkiyeMigration.nodes, variant="vuw")
#   -- OR --
library(igraph)
TMgraph <- graph_from_data_frame(TurkiyeMigration.flows, directed=TRUE, TurkiyeMigration.nodes)
TMSDI <- SDI(TMgraph, variant="vuw")

Refer to documentation for calculating different SDI variants

If you want to use visualization features of rSDI package make sure you have installed ggraph and maps packages, then invoke plotSDI as follows to visualize a particular SDI variant computed previously:

plotSDI(TMSDI, variant="vuw")

Please refer to plot.SDI documentation for parameters to tweak visualization features.

Metadata

Version

0.2.1

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows