segmentHighlight {cholera}R Documentation

Highlight segment by ID.

Description

Highlight segment by ID.

Usage

segmentHighlight(id, highlight = TRUE, col = "red", angled = FALSE)

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.

highlight

Logical. Color segment.

col

Character. Highlight color.

angled

Logical. Rotate segment ID label.

Value

A base R graphics segment(s).

Examples

streetNameLocator("Soho Square", zoom = TRUE, highlight = FALSE)
ids <- road.segments[road.segments$name == "Soho Square", "id"]
invisible(lapply(ids, function(x) segmentHighlight(x, highlight = FALSE)))

[Package cholera version 0.8.0 Index]