Add walking neighborhoods.
addNeighborhoodWalking(pump.select = NULL, vestry = FALSE,
weighted = TRUE, case.set = "expected", latlong = FALSE,
type = "area.polygons", tsp.method = "repetitive_nn", path.width = 2,
alpha.level = 0.5, polygon.type = "solid", polygon.col = NULL,
polygon.lwd = 2, multi.core = FALSE)
Numeric. Vector of numeric pump IDs to define pump neighborhoods (i.e., the "population"). Negative selection possible. NULL
selects all pumps. Note that you can't just select the pump on Adam and Eve Court (#2) because it's technically an isolate.
Logical. TRUE
uses the 14 pumps from the Vestry report. FALSE
uses the 13 in the original map.
Logical. TRUE
computes shortest path weighted by road length. FALSE
computes shortest path in terms of the number of nodes.
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.
Logical.
Character. "roads", "area.points" or "area.polygons". "area" flavors only valid when case.set = "expected"
.
Character. Traveling salesperson problem algorithm.
Numeric. Set width of paths.
Numeric. Alpha level transparency for area plot: a value in [0, 1].
Character. "border" or "solid".
Character.
Numeric.
Logical or Numeric. TRUE
uses parallel::detectCores()
. FALSE
uses one, single core. You can also specify the number logical cores. See vignette("Parallelization")
for details.
if (FALSE) {
streetNameLocator("marshall street", zoom = 0.5)
addNeighborhoodWalking()
}
Run the code above in your browser using DataLab