Learn R Programming

cholera (version 0.9.1)

segmentHighlight: Highlight segment by ID.

Description

Highlight segment by ID.

Usage

segmentHighlight(id, highlight = TRUE, col = "red", rotate.label = FALSE,
  latlong = FALSE)

Value

A base R graphics segment(s).

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.

Examples

Run this code
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)))

Run the code above in your browser using DataLab