View source: R/segmentHighlight.R
segmentHighlight | R Documentation |
Highlight segment by ID.
segmentHighlight(id, highlight = TRUE, col = "red", rotate.label = FALSE,
latlong = FALSE)
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. |
A base R graphics segment(s).
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)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.