Add expected walking neighborhoods.
addNeighborhoodWalking(pump.subset = NULL, pump.select = NULL,
vestry = FALSE, weighted = TRUE, path = NULL, path.color = NULL,
path.width = 3, alpha.level = 0.25, polygon.type = "solid",
polygon.col = NULL, polygon.lwd = 2, multi.core = TRUE,
dev.mode = FALSE, latlong = FALSE)
Numeric. Vector of numeric pump IDs to subset from the neighborhoods defined by pump.select
. Negative selection possible. NULL
uses all pumps in pump.select
.
Numeric. Numeric vector of pump IDs that define which pump neighborhoods to consider (i.e., specify the "population"). Negative selection possible. NULL
selects all pumps.
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. "expected" or "observed".
Character. Use a single color for all paths. NULL
uses neighborhood colors defined by snowColors()
.
Numeric. Set width of paths.
Numeric. Alpha level transparency for area plot: a value in [0, 1].
Character. "perimeter" 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.
Logical. Development mode uses parallel::parLapply().
Logical. Use estimated longitude and latitude.
if (FALSE) {
streetNameLocator("marshall street", zoom = 0.5)
addNeighborhoodWalking()
}
Run the code above in your browser using DataLab