latlongStreetNameLocator: Locate road by name.

View source: R/latlongStreetNameLocator.R

latlongStreetNameLocatorR Documentation

Locate road by name.

Description

Highlight a road and its cases. See the list of road names in vignette("road.names").

Usage

latlongStreetNameLocator(road.name = "Broad Street", zoom = FALSE,
  cases = "address", token = "id", add.title = TRUE,
  add.subtitle = TRUE, add.pump = TRUE, vestry = FALSE,
  highlight = TRUE, distance.unit = "meter", time.unit = "minute",
  walking.speed = 5)

Arguments

road.name

Character vector. Note that streetNameLocator() tries to correct for case and to remove extra spaces.

zoom

Logical.

cases

Character. Plot cases: NULL, "address" or "fatality".

token

Character. "id" or "point".

add.title

Logical. Include title.

add.subtitle

Logical. Include subtitle with road information.

add.pump

Logical. Include nearby pumps.

vestry

Logical. TRUE uses the 14 pumps from the Vestry report. FALSE uses the 13 in the original map.

highlight

Logical. Highlight selected road and its cases.

distance.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.

Value

A base R graphics plot.


lindbrook/cholera documentation built on April 14, 2024, 6:29 a.m.