cholera (version 0.2.1)

plot.walking: Plot observed and simulated walking neighborhoods.

Description

Neighborhoods are based on the shortest paths between a fatality's address and its nearest pump.

Usage

# S3 method for walking
plot(x, streets = TRUE, observed = TRUE, ...)

Arguments

x

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

streets

Logical. TRUE plots neighborhoods by street. FALSE plots orthogonal neighborhoods (area).

observed

Logical. TRUE uses observed cases. FALSE uses "regular" simulated cases.

...

Additional plotting parameters.

Value

A base R graphics plot.

Examples

Run this code
# NOT RUN {
plot(neighborhoodWalking())
# }

Run the code above in your browser using DataCamp Workspace