segmentHighlight {cholera} | R Documentation |
Highlight segment by ID.
Description
Highlight segment by ID.
Usage
segmentHighlight(id, highlight = TRUE, col = "red", rotate.label = FALSE,
latlong = FALSE)
Arguments
id |
Character. Segment ID: 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. |
rotate.label |
Logical. Rotate segment ID label. |
latlong |
Logical. Use estimated longitude and latitude. |
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.9.1 Index]