The R Journal: article published in 2018, volume 10:2

stplanr: A Package for Transport Planning PDF download
Robin Lovelace and Richard Ellison , The R Journal (2018) 10:2, pages 7-23.

Abstract Tools for transport planning should be flexible, scalable, and transparent. The stplanr package demonstrates and provides a home for such tools, with an emphasis on spatial transport data and non-motorized modes. The stplanr package facilitates common transport planning tasks including: downloading and cleaning transport datasets; creating geographic “desire lines” from origin-destination (OD) data; route assignment, locally and interfaces to routing services such as; calculation of route segment attributes such as bearing and aggregate flow; and ‘travel watershed’ analysis. This paper demonstrates this functionality using reproducible examples on real transport datasets. More broadly, the experience of developing and using R functions for transport applications shows that open source software can form the basis of a reproducible transport planning workflow. The stplanr package, alongside other packages and open source projects, could provide a more transparent and democratically accountable alternative to the current approach, which is heavily reliant on proprietary and relatively inaccessible software.

Received: 2017-03-22; online 2018-12-08, supplementary material, (2.6 KiB)
CRAN packages: sp, rgeos, rgdal, sf, SpatialEpi, diseasemapping, leaflet, tmap, mapview, mapmisc, XML, twitteR, ggplot2, muStat, mgcv, shiny, haven, rio, dplyr, osmdata, stats19, bikedata, stplanr, nycflights, nycflights13, cyclestreets, igraph, Rcpp, aspace, MCI
CRAN Task Views implied by cited CRAN packages: Spatial, WebTechnologies, Graphics, OfficialStatistics, SpatioTemporal, Bayesian, Databases, Econometrics, Environmetrics, gR, HighPerformanceComputing, ModelDeployment, NumericalMathematics, Optimization, Phylogenetics, SocialSciences

CC BY 4.0
This article and supplementary materials are licensed under a Creative Commons Attribution 4.0 International license.

  author = {Robin Lovelace and Richard Ellison},
  title = {{stplanr: A Package for Transport Planning}},
  year = {2018},
  journal = {{The R Journal}},
  doi = {10.32614/RJ-2018-053},
  url = {},
  pages = {7--23},
  volume = {10},
  number = {2}