Learn R Programming

movecost (version 3.0.0)

plot.movecost_alloc: Plot cost-allocation zones

Description

Returns a ggplot object showing the cost-allocation zones (one colour per origin), with the origins and, optionally, the isolines of the minimum accumulated cost surface.

Usage

# S3 method for movecost_alloc
plot(
  x,
  isolines = FALSE,
  transp = 0.5,
  iso.col = "white",
  iso.lwd = 0.3,
  origin.lab = TRUE,
  cex.origin.lab = 3,
  ...
)

Value

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

Arguments

x

a movecost_alloc object.

isolines

TRUE or FALSE (default): overlay the cost isolines.

transp

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

iso.col

colour of the isolines (default "white", which reads clearly against the coloured allocation zones).

iso.lwd

line width of the isolines (0.3 by default).

origin.lab

TRUE (default) or FALSE: label each origin with its index. The indices match the zone identifiers (the cell values of the allocation raster and the origin_id of zones), so each origin can be related to the zone allocated to it.

cex.origin.lab

size of the origin labels (3 by default, in ggplot2 text-size units).

...

unused.

See Also

mc_alloc