plot.walking {cholera}R Documentation

Plot method for neighborhoodWalking().

Description

Plot method for neighborhoodWalking().

Usage

## S3 method for class 'walking'
plot(x, type = "roads", msg = FALSE,
  tsp.method = "repetitive_nn", ...)

Arguments

x

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

type

Character. "roads", "area.points" or "area.polygons". "area" flavors only valid when case.set = "expected".

msg

Logical. Toggle in-progress messages.

tsp.method

Character. Traveling salesperson problem algorithm.

...

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.

Examples

## Not run: 
plot(neighborhoodWalking())
plot(neighborhoodWalking(case.set = "expected"))
plot(neighborhoodWalking(case.set = "expected"), type = "area.points")
plot(neighborhoodWalking(case.set = "expected"), type = "area.polygons")

## End(Not run)

[Package cholera version 0.8.0 Index]