Skip to content

riatelab/SpatialPosition

Repository files navigation

SpatialPosition

Version R-CMD-check

Stewart Potentials

R package for computing spatial position models:

  • Stewart potentials ⚠️
  • Reilly catchment areas
  • Huff catchment areas

⚠️ 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")