pumpLocator {cholera}R Documentation

Locate water pump by numerical ID.

Description

Highlight selected water pump.

Usage

pumpLocator(id = 7, zoom = 1, vestry = FALSE, add.title = TRUE,
  highlight.segment = TRUE, data = FALSE)

Arguments

id

Numeric or Integer. With vestry = TRUE, a whole number between 1 and 14. With vestry = FALSE, a whole number between 1 and 13. See cholera::pumps.vestry and cholera::pumps for IDs and details about specific pumps.

zoom

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

vestry

Logical. TRUE for the 14 pumps from Vestry Report. FALSE for the original 13 pumps.

add.title

Logical. Include title.

highlight.segment

Logical. Highlight case's segment.

data

Logical. Output data.

Value

A base R graphics plot.

See Also

pumpData

Examples

pumpLocator()
pumpLocator(zoom = TRUE)
pumpLocator(14, vestry = TRUE, zoom = TRUE)

[Package cholera version 0.7.5 Index]