topoPaths {topoDistance} | R Documentation |
Identify shortest topographic paths
Description
Identify shortest topographic paths
Usage
topoPaths(t.dist, pts)
Arguments
t.dist |
A TransitionLayer object. |
pts |
A SpatialPoints object for the geographic points from which to calculate pairwise distances and paths. |
Details
This function identifies shortest topographic paths from a topographic TransitionLayer. It does not need to be called separately from the topoDist and topoLCP functions.
Value
An object of class SpatialLines
Examples
xy <- matrix(ncol = 2, byrow = TRUE,
c(-119.5566, 37.72474,
-119.4718, 37.76078))
xy <- sp::SpatialPoints(xy)
topoTL <- topoSurface(Yosemite$DEM)
topoPaths(topoTL, xy)
[Package topoDistance version 1.0.2 Index]