plot.walking {cholera}R Documentation

Plot method for neighborhoodWalking().

Description

Plot method for neighborhoodWalking().

Usage

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

Arguments

x

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

type

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

msg

Logical. Toggle in-progress messages.

...

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.7.5 Index]