Learn R Programming

cholera (version 0.4.0)

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", unit = NULL)

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".

unit

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

Value

A base R graphics plot.

See Also

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

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