Learn R Programming

⚠️There's a newer version (2.1.3) of this package.Take me there.

SpatialPosition

R package for computing spatial position models:

  • Stewart potentials
  • Reilly catchment areas
  • Huff catchment areas

Installation

From CRAN

Stable version

install.packages("SpatialPosition")

From GitHub

Development version / unstable

require(remotes)
remotes::install_github("Groupe-ElementR/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

359

Version

2.0.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Timothée Giraud

Last Published

April 14th, 2020

Functions in SpatialPosition (2.0.1)

mcStewart

Stewart Potentials Parallel
plotHuff

Plot a Huff Raster
plotReilly

Plot a Reilly Raster
CreateDistMatrix

Create a Distance Matrix Between Two Spatial Objects
paris

Paris Polygon
hospital

Public Hospitals
isopoly

Create Spatial Polygons Contours from a Raster
CreateGrid

Create a Regularly Spaced Points Grid
reilly

Reilly Catchment Areas
plotStewart

Plot a Stewart Raster
rasterHuff

Create a Raster from a Huff SpatialPointsDataFrame
spatPts

Public Hospitals
spatMask

Paris Perimeter
spatUnits

Spatial Units of Paris
stewart

Stewart Potentials
rasterStewart

Create a Raster from a Stewart Regular Grid
rasterToContourPoly

Create a SpatialPolygonsDataFrame from a Raster
smoothy

Stewart Smooth
quickStewart

Create Polygons of Potentials Contours
rasterReilly

Create a Raster from a Reilly Regular Grid
SpatialPosition

Spatial Position Package
huff

Huff Catchment Areas