neighborhoodData {cholera}R Documentation

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", embed = TRUE,
  embed.landmarks = TRUE)

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.

embed

Logical. Embed cases and pumps into road network.

embed.landmarks

Logical. Embed landmarks into road network.

Value

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


[Package cholera version 0.8.0 Index]