Learn R Programming

cholera (version 0.5.1)

streetNumberLocator: Locate road by numerical ID.

Description

Highlight a road and its cases. See cholera::roads for numerical IDs and vignette("road.names") for details.

Usage

streetNumberLocator(road.number, zoom = FALSE, radius = 1,
  cases = "anchors", add.title = TRUE, add.pump = TRUE,
  vestry = FALSE, highlight = TRUE, unit = "meter",
  time.unit = "second", walking.speed = 5)

Arguments

road.number

Numeric or integer. A whole number between 1 and 528.

zoom

Logical.

radius

Numeric. Controls the degree of zoom.

cases

Character. Plot cases: NULL, "anchors" or "all".

add.title

Logical. Include title.

add.pump

Logical. Include nearby pumps.

vestry

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

highlight

Logical. Highlight selected road.

unit

Character. Unit of measurement: "meter" or "yard". Default is NULL, which returns the map's native scale.

time.unit

Character. "hour", "minute", or "second".

walking.speed

Numeric. Walking speed in km/hr.

Value

A base R graphics plot.

See Also

roads, road.segments, streetNameLocator, vignette("roads")

Examples

Run this code
# NOT RUN {
streetNumberLocator(243)
streetNumberLocator(243, zoom = TRUE)
streetNumberLocator(243, zoom = TRUE, radius = 0)
# }

Run the code above in your browser using DataLab