Learn R Programming

cholera (version 0.4.0)

neighborhoodData: Compute network graph of roads, cases and pumps.

Description

Assembles cases, pumps and road into a network graph.

Usage

neighborhoodData(vestry = FALSE, case.set = "observed")

Arguments

vestry

Logical. Use Vestry Report pump data.

case.set

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

Value

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