Learn R Programming

cholera (version 0.5.1)

segmentLocator: Locate road segment by ID.

Description

Highlights the selected road segment and its cases.

Usage

segmentLocator(id, zoom = FALSE, radius = 0.5, cases = "anchors",
  unit = "meter", time.unit = "minute", walking.speed = 5,
  title = TRUE, subtitle = TRUE)

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. Default is FALSE.

radius

Numeric. Controls the degree of zoom. For values <= 5, the numeric ID of all cases or just the anchor case is plotted.

cases

Character. Plot cases: NULL, "anchors" or "all".

unit

Character. Unit of distance: "meter", "yard" or "native". "native" returns the map's native scale. See vignette("roads") for information on conversion.

time.unit

Character. "hour", "minute", or "second".

walking.speed

Numeric. Walking speed in km/hr.

title

Logical. Print title.

subtitle

Logical. Print subtitle.

Value

A base R graphics plot.

See Also

road.segments

Examples

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

Run the code above in your browser using DataLab