The R Journal: accepted article

This article will be copy edited and may be changed before publication.

stplanr: A Package for Transport Planning PDF download
Robin Lovelace and Richard Ellison

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. stplanr facilitates common transport planning tasks including: download ing and cleaning transport datasets; creating geographic ‘desire lines’ from origin-destination (OD) data; route assignment, via the SpatialLinesNetwork class and interfaces to routing services such as CycleStreets.net; 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 shows open source software can form the basis of a reproducible transport planning workflow. stplanr, 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 technically and financially inaccessible software.

Received: 2017-03-22; online 2018-12-08, supplementary material, (2.6 Kb)
CRAN packages: sp, rgeos, rgdal, sf, SpatialEpi, diseasemapping, leaflet, tmap, mapview, mapmisc, XML, twitteR, ggplot2, muStat, mgcv, shiny, haven, rio, dplyr, osmdata, 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.

@article{RJ-2018-053,
  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 = {https://journal.r-project.org/archive/2018/RJ-2018-053/index.html}
}