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


Reference manual

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

install.packages("gdistance")

1.6.5 by Andrew Marx, a year ago


https://AgrDataSci.github.io/gdistance/


Report a bug at https://github.com/AgrDataSci/gdistance/issues


Browse source code at https://github.com/cran/gdistance


Authors: Jacob van Etten [aut] , KauĂȘ de Sousa [ctb] , Andrew Marx [cre, ctb]


Documentation:   PDF Manual  


GPL (>= 2) license


Imports sp, stats, terra

Depends on raster, methods, igraph, Matrix

Suggests knitr, markdown, rmarkdown, testthat


Imported by PopGenReport, cdmetapopR, gen3sis, graph4lg, marmap, memgene, poems, pressuRe, red, topoDistance, weightedVoronoi, wingen.

Depended on by ctmcmove, ipdw.

Suggested by actel, dartR, dartR.base, dartR.spatial, phylin, roads, samc, secr, terralink.


See at CRAN