Spatial Position Models

Computes spatial position models: Stewart potentials, Reilly catchment areas, Huff catchment areas.


Stewart Potentials

R package for computing spatial position models:

  • Stewart potentials
  • Reilly catchment areas
  • Huff catchment areas



Stable version


From GitHub

Development version



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


SpatialPosition version 1.2.0 (Release date: 2017-09-06)

Major changes:

  • Introduce mcStewart to compute stewart potentiels using parallel processing
  • Introduce smoothy to compute distance weighted mean.
  • Introduce a vignette on how to SpatialPosition with QGIS.

Minor changes:

  • (Re)introduce a longlat param in stewart, mcStewart, huff and reilly to select between eucliean and great circles distances.
  • Add a bypassctrl param in stewart, huff and reilly to allow computations on large datasets
  • More points in the default mask of raster poly
  • Rewrite of CreateGrid and rasterToContourPoly functions

SpatialPosition version 1.1.1 (Release date: 2016-06-07)

Minor changes:

  • Check mask size and validity in ratserToContourPoly
  • Better SpatialPolygonsDataFrame output in rasterToContourPoly
  • Default distance computation is in meters using the Great Circle distance (WGS84 ellipsoid) method.

SpatialPosition version 1.1 (Release date: 2016-03-18)

Major changes:

  • Introduce the quickStewart function that outputs stewart contour polygons easily. Ratio of potentials are allowed.
  • Introduce rasterToContourPoly to replace contourStewart.
  • contourStewart is now deprecated. Use rasterToContour from raster to output contour lines and rasterToContourPoly from SpatialPosition to output polygons.

Minor changes:

  • A resolution is set by default in CreateGrid.
  • Vignettes are updated to reflect major changes.

SpatialPosition version 1.0 (Release date: 2015-11-30)

Major changes:

  • Better code for contourStewart.
  • Better legend for plotStewart
  • New vignette 'Stewart Potentials: a Use Case'.

Minor changes:

  • Minor changes in documentation and vignette.
  • Add 'cartography' in suggested packages

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


1.2.0 by Timothée Giraud, 6 months ago

Report a bug at

Browse source code at

Authors: Timothée Giraud [cre, aut], Hadrien Commenges [aut], Joël Boulier [ctb]

Documentation:   PDF Manual  

Task views: Analysis of Spatial Data

GPL-3 license

Imports sp, grDevices, graphics, methods, rgeos, rgdal

Depends on raster

Suggests parallel, doParallel, foreach, cartography, knitr, rmarkdown

Suggested by cartography.

See at CRAN