cholera (version 0.2.1)

segmentLocator: Locate road segment by its character ID.

Description

Plots John Snow's map of the 1854 London cholera outbreak and highlights the selected road segment. With Dodson and Tobler's data, a street (e.g., Broad Street) is often comprised of multiple straight line segments. To identify each segment individually, an additional identifying number is appended to form a text string (e.g., "116-2").

Usage

segmentLocator(id, zoom = TRUE, radius = 0.5)

Arguments

id

Character. A concatenation of a street's numeric ID, a whole number between 1 and 528, and a second number to identify the segment.

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

road.segments

Examples

Run this code
# NOT RUN {
segmentLocator("190-1")
segmentLocator("216-1")
# }

Run the code above in your browser using DataCamp Workspace