The shortest.paths function from the igraph package is applied to an igraph object and the results are coerced to a raster object.
1 |
graph |
igraph object |
costsurf |
RasterLayer cost surface |
snode |
numeric starting node number |
scoord |
matrix 2 column starting coordinate |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.