cholera (version 0.2.1)

streetNameLocator: Locate road by name.

Description

Plots John Snow's map of the 1854 London cholera outbreak and highlights the selected road. See the list of road names in vignette("road.names").

Usage

streetNameLocator(road.name, zoom = FALSE, radius = 1)

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. For "radius" <= 5, the anchor case number is plotted.

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