Learn R Programming

cholera (version 0.5.1)

pumpLocator: Locate water pump by numerical ID.

Description

Highlight selected water pump.

Usage

pumpLocator(id, zoom = FALSE, radius = 2, vestry = 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.

radius

Numeric. Controls the degree of zoom.

vestry

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

Value

A base R graphics plot.

See Also

pumpData

Examples

Run this code
# NOT RUN {
pumpLocator(7) # Broad Street Pump
pumpLocator(7, zoom = TRUE)
pumpLocator(7, zoom = TRUE, radius = 1)
pumpLocator(14, vestry = TRUE, zoom = TRUE, radius = 1)
# }

Run the code above in your browser using DataLab