topoPaths | R Documentation |
Identify shortest topographic paths
topoPaths(t.dist, pts)
t.dist |
A TransitionLayer object. |
pts |
A SpatialPoints object for the geographic points from which to calculate pairwise distances and paths. |
This function identifies shortest topographic paths from a topographic TransitionLayer. It does not need to be called separately from the topoDist and topoLCP functions.
An object of class SpatialLines
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.