Learn R Programming

cholera (version 0.4.0)

streetNameLocator: Locate road by name.

Description

Highlight a road and its cases. See the list of road names in vignette("road.names").

Usage

streetNameLocator(road.name, zoom = FALSE, radius = 0.1,
  cases = "anchors", add.title = TRUE, add.pump = TRUE, vestry = FALSE,
  highlight = TRUE, unit = "meter")

Arguments

road.name

Character vector. Note that streetNameLocator() tries to correct for case and to remove extra spaces.

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". NULL returns the map's native scale.

Value

A base R graphics plot.

See Also

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

Examples

Run this code
# NOT RUN {
streetNameLocator("Oxford Street")
streetNameLocator("oxford street")
streetNameLocator("Cambridge Street", zoom = TRUE)
streetNameLocator("Cambridge Street", zoom = TRUE, radius = 0)
# }

Run the code above in your browser using DataLab