Learn R Programming

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

Copy Link

Version

Install

install.packages('SpatialPosition')

Monthly Downloads

523

Version

2.1.2

License

GPL-3

Issues

Pull Requests

Stars

Forks

Last Published

September 14th, 2023

Functions in SpatialPosition (2.1.2)

smoothy

Stewart Smooth
stewart

Stewart Potentials
plotStewart

Plot a Stewart Raster
rasterStewart

Create a Raster from a Stewart Regular Grid
rasterReilly

Create a Raster from a Reilly Regular Grid
plotReilly

Plot a Reilly Raster
plotHuff

Plot a Huff Raster
rasterHuff

Create a Raster from a Huff SpatialPointsDataFrame
reilly

Reilly Catchment Areas
quickStewart

Create Polygons of Potentials Contours
huff

Huff Catchment Areas
isopoly

Create Spatial Polygons Contours from a Raster
CreateGrid

Create a Regularly Spaced Points Grid
CreateDistMatrix

Create a Distance Matrix Between Two Spatial Objects
SpatialPosition

Spatial Position Package
paris

Paris Polygon
hospital

Public Hospitals
mcStewart

Stewart Potentials Parallel