Description
Spatial Position Models.
Description
Computes spatial position models: the potential model as defined by Stewart (1941) <doi:10.1126/science.93.2404.89> and catchment areas as defined by Reilly (1931) or Huff (1964) <doi:10.2307/1249154>.
README.md
SpatialPosition
R package for computing spatial position models:
- Stewart potentials :warning:
- Reilly catchment areas
- Huff catchment areas
:warning: Functions related to Stewart's potential are deprecated. Please use the potential
package instead.
Installation
From CRAN
Stable version
install.packages("SpatialPosition")
From GitHub
Development version / unstable
require(remotes)
remotes::install_github("riatelab/SpatialPosition")
From Archive
Version 2.0.0 of the package is a major release that should not break old code.
Anyway, in case of problem you can use these lines to get a previous version of the package.
packageurl <- "https://cran.r-project.org/src/contrib/Archive/SpatialPosition/SpatialPosition_1.2.0.tar.gz"
install.packages(packageurl, repos=NULL, type="source")
Demo
Vignettes contain commented scripts on how to use SpatialPostion
.
- Introduction to the SpatialPosition package :
vignette(topic = "SpatialPosition")
- Stewart Potentials: a Use Case :
vignette(topic = "StewartExample")