Learn R Programming

cholera (version 0.9.1)

sohoGraph: Compute network graph of roads and embed cases, landmarks and pumps (prototype).

Description

Compute network graph of roads and embed cases, landmarks and pumps (prototype).

Usage

sohoGraph(vestry = FALSE, case.set = "observed", embed.addr = TRUE,
  embed.landmarks = TRUE, embed.pumps = TRUE, latlong = FALSE,
  drop.isolates = FALSE)

Value

An R list of nodes, edges and an 'igraph' network graph.

Arguments

vestry

Logical. Use Vestry Report pump data.

case.set

Character. "observed", "expected", or "snow". "snow" captures John Snow's annotation of the Broad Street pump neighborhood printed in the Vestry report version of the map.

embed.addr

Logical. Embed all 321 or selected anchor case addresses into graph network.

embed.landmarks

Logical or Numeric. Embed all or selected landmarks into road network.

embed.pumps

Logical or Numeric. Embed all or selected pumps into road network.

latlong

Logical. Use estimated longitude and latitude.

drop.isolates

Logical. Exclude Adam and Eve Court (and Pump #2) and Falconberg Court and Mews.