cholera (version 0.2.1)

caseLocator: Locate case by numerical ID.

Description

Plots John Snow's map of the 1854 London cholera outbreak and highlights the selected observed or simulated case.

Usage

caseLocator(case, zoom = FALSE, observed = TRUE, radius = 2,
  stacked = TRUE)

Arguments

case

Numeric or Integer. Whole number between 1 and 578.

zoom

Logical.

observed

Logical. TRUE for observed. FALSE for simulated.

radius

Numeric. Controls the degree of zoom.

stacked

Logical. TRUE uses fatalities ("stacked" data); FALSE uses fatalities.address ("unstacked" data).

Value

A base R graphics plot.

See Also

fatalities, fatalities.address, fatalities.unstacked

Examples

Run this code
# NOT RUN {
caseLocator(290)
caseLocator(290, zoom = TRUE)
caseLocator(290, stacked = FALSE)
caseLocator(290, zoom = TRUE, stacked = FALSE)
caseLocator(290, observed = FALSE)
# }

Run the code above in your browser using DataLab