| plot.movecost_paths | R Documentation |
Returns a ggplot object showing the DTM (terrain colours plus slope-shade), the least-cost path(s), the origin (black dot) and destination(s) (red dots), optionally labelled with the accumulated cost, and the return paths (dashed) if they were computed.
## S3 method for class 'movecost_paths'
plot(
x,
destin.lab = TRUE,
cex.lcp.lab = 2.5,
transp = 0.5,
lcp.lwd = 0.3,
plot.barrier = FALSE,
...
)
x |
a |
destin.lab |
TRUE (default) or FALSE: label each destination with its accumulated cost. |
cex.lcp.lab |
size of the destination labels (2.5 by default). |
transp |
transparency of the slope-shade overlay (0.5 by default). |
lcp.lwd |
line width of the least-cost path(s) (0.3 by default; the return paths, if any, are drawn at 80% of this width). |
plot.barrier |
TRUE or FALSE (default): draw the barrier (blue) if one was used when building the surface. |
... |
unused. |
A ggplot object (draw it by printing; customise it with +).
mc_paths
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.