cholera (version 0.2.1)

streetNumberLocator: Locate road by its numerical ID.

Description

Plots John Snow's map of the 1854 London cholera outbreak and highlights the selected road. See cholera::roads for numerical IDs and vignette("road.names") for details.

Usage

streetNumberLocator(road.number, zoom = FALSE, radius = 1)

Arguments

road.number

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

zoom

Logical.

radius

Numeric. Controls the degree of zoom. For values <= 5, the anchor case number is plotted.

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 DataCamp Workspace