Learn R Programming

movecost (version 3.0.0)

plot.movecost_rank: Plot ranked least-cost paths

Description

Returns a ggplot object showing, depending on type, the ranked paths over the terrain ("map", default), the same paths drawn over the least-cost corridor between the two locations ("corridor", the equivalent of movecost <= 2.x's use.corr), or a bubble chart of path length against rank with bubble size proportional to cost ("chart", the equivalent of movecost <= 2.x's add.chart). No manual data assembly is required for any of them.

Usage

# S3 method for movecost_rank
plot(x, type = c("map", "corridor", "chart"), transp = 0.5, lcp.lwd = 0.6, ...)

Value

A ggplot object (draw it by printing; customise it with +).

Arguments

x

a movecost_rank object.

type

"map" (default), "corridor", or "chart" (see Details).

transp

transparency of the slope-shade overlay (0.5 by default).

lcp.lwd

line width of the ranked paths (0.6 by default).

...

unused.

See Also

mc_rank