Learn R Programming

cholera (version 0.8.0)

pumpLocator: 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)

Value

A base R graphics plot.

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.

See Also

pumpData

Examples

Run this code
pumpLocator()
pumpLocator(zoom = TRUE)
pumpLocator(14, vestry = TRUE, zoom = TRUE)

Run the code above in your browser using DataLab