Learn R Programming

movecost (version 3.0.0)

plot.movecost_corridor: Plot a least-cost corridor

Description

Returns a ggplot object showing the corridor surface (low values = cheap movement) with the input locations. For the two-location case computed with lcp = TRUE, the least-cost paths A-to-B and B-to-A are overlaid (they differ under anisotropic cost functions).

Usage

# S3 method for movecost_corridor
plot(x, transp = 0.5, lcp.lwd = 0.4, ...)

Value

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

Arguments

x

a movecost_corridor object.

transp

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

lcp.lwd

line width of the overlaid least-cost paths (0.4 by default).

...

unused.

See Also

mc_corridor