Learn R Programming

cholera (version 0.9.1)

plot.walking: Plot method for neighborhoodWalking().

Description

Plot method for neighborhoodWalking().

Usage

# S3 method for walking
plot(x, type = "area.points", add = FALSE,
  tsp.method = "repetitive_nn", path.width = 2, alpha.level = 0.75,
  polygon.type = "solid", polygon.col = NULL, polygon.lwd = 2, ...)

Value

A base R plot.

Arguments

x

An object of class "walking" created by neighborhoodWalking().

type

Character. Type of expected plot: "roads", "area.points" or "area.polygons". Valid only when case.set = "expected".

add

Logical. Add graphic to plot.

tsp.method

Character. Traveling salesperson problem algorithm.

path.width

Numeric. Set width of paths.

alpha.level

Numeric. Alpha level transparency for area plot: a value in [0, 1].

polygon.type

Character. "border" or "solid".

polygon.col

Character.

polygon.lwd

Numeric.

...

Additional plotting parameters.