acc_path: Generate a shortest path raster from a specific graph node or...

Description Usage Arguments

View source: R/acc_path.R

Description

The shortest.paths function from the igraph package is applied to an igraph object and the results are coerced to a raster object.

Usage

1
acc_path(graph, costsurf, snode = NULL, scoord = NULL)

Arguments

graph

igraph object

costsurf

RasterLayer cost surface

snode

numeric starting node number

scoord

matrix 2 column starting coordinate


jsta/irlgraph documentation built on May 20, 2019, 2:10 a.m.