plot.walking: Plot method for neighborhoodWalking().

View source: R/walking.R

plot.walkingR Documentation

Plot method for neighborhoodWalking().

Description

Plot method for neighborhoodWalking().

Usage

## S3 method for class '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, ...)

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.

Value

A base R plot.

Note

When plotting area graphs with simulated data (i.e., case.set = "expected"), there may be discrepancies between observed cases and expected neighborhoods, particularly between neighborhoods. type = "roads" inspired by Shiode et. al. (2015).


lindbrook/cholera documentation built on March 5, 2025, 5:40 p.m.