caseLocator: Locate case by numerical ID.

View source: R/caseLocator.R

caseLocatorR Documentation

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)

Arguments

case

Numeric or Integer. Whole number between 1 and 578.

zoom

Logical or Numeric.A numeric value >= 0 controls the degree of zoom. The default is 1.

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.

Value

A base R graphics plot.

Examples

caseLocator(290)
caseLocator(290, zoom = TRUE)
caseLocator(290, observed = FALSE)
caseLocator(290, latlong = TRUE, zoom = TRUE)

lindbrook/cholera documentation built on Jan. 13, 2025, 3:49 p.m.