gdistance: Distances and Routes on Geographical Grids

Provides classes and functions to calculate various distance measures and routes in heterogeneous geographic spaces represented as grids. The package implements measures to model dispersal histories first presented by van Etten and Hijmans (2010) <doi:10.1371/journal.pone.0012060>. Least-cost distances as well as more complex distances based on (constrained) random walks can be calculated. The distances implemented in the package are used in geographical genetics, accessibility indicators, and may also have applications in other fields of geospatial analysis.

Version: 1.3-6
Depends: R (≥ 3.2.0), raster (≥ 1.9-19), methods, igraph (≥ 0.7.0), Matrix
Imports: sp, stats
Suggests: knitr, markdown, rmarkdown, testthat (≥ 2.1.0)
Published: 2020-06-29
Author: Jacob van Etten ORCID iD [aut], KauĂȘ de Sousa ORCID iD [cre, ctb]
Maintainer: KauĂȘ de Sousa <kaue.desousa at>
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
NeedsCompilation: no
Materials: NEWS
In views: Spatial
CRAN checks: gdistance results


Package source: gdistance_1.3-6.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release: gdistance_1.3-6.tgz, r-oldrel: gdistance_1.3-6.tgz
Old sources: gdistance archive

Reverse dependencies:

Reverse depends: ctmcmove
Reverse imports: crawl, dartR, gen3sis, leastcostpath, marmap, memgene, movecost, PopGenReport, red, rWind, samc, topoDistance, VTrack
Reverse suggests: actel, GmAMisc, phylin, secr


Please use the canonical form to link to this page.