Learn R Programming

cholera (version 0.9.1)

caseLocator: Locate case by numerical ID.

Description

Highlight selected observed or simulated case and its home road segment.

Usage

caseLocator(case = 1, zoom = FALSE, observed = TRUE, latlong = FALSE,
  add.title = TRUE, highlight.segment = TRUE, data = FALSE,
  add = FALSE, col = "red", vestry = FALSE)

Value

A base R graphics plot.

Arguments

case

Numeric or Integer. Whole number between 1 and 578.

zoom

Logical or Numeric. Positive numbers zoom in; negative numbers zoom out.

observed

Logical. TRUE for observed. FALSE for simulated.

latlong

Logical. Longitude and latitude coordinates

add.title

Logical. Include title.

highlight.segment

Logical. Highlight case's segment.

data

Logical. Output data.

add

Logical. Add to existing plot or separate plot.

col

Character. Point color.

vestry

Logical. TRUE uses the 14 pumps from the Vestry report. FALSE uses the 13 in the original map.

Examples

Run this code
caseLocator(290)
caseLocator(290, zoom = TRUE)
caseLocator(290, observed = FALSE)
caseLocator(290, latlong = TRUE, zoom = TRUE)

Run the code above in your browser using DataLab