latlongVoronoi {cholera}R Documentation

Compute Georeferenced Latitude and Longitude of vertices of Voronoi polygons.

Description

Compute Georeferenced Latitude and Longitude of vertices of Voronoi polygons.

Usage

latlongVoronoi(pump.select = NULL, vestry = FALSE)

Arguments

pump.select

Numeric. Vector of numeric pump IDs to define pump neighborhoods (i.e., the "population"). Negative selection possible. NULL selects all pumps.

vestry

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

Examples

snowMap(latlong = TRUE)
cells <- latlongVoronoi()
invisible(lapply(cells, function(x) polygon(x[, c("lon", "lat")])))

[Package cholera version 0.8.0 Index]