addMilePosts {cholera} | R Documentation |
Add distance or time based "mileposts" to an observed walking neighborhood plot.
addMilePosts(pump.subset = NULL, pump.select = NULL, vestry = FALSE, unit = "distance", interval = NULL, walking.speed = 5, type = "arrows", multi.core = TRUE, dev.mode = FALSE)
pump.subset |
Numeric. Vector of numeric pump IDs to subset from the neighborhoods defined by |
pump.select |
Numeric. Numeric vector of pumps to define possible pump neighborhoods (i.e. the "population"). Negative selection is possible. NULL selects all "observed" pumps (i.e., pumps with at least one case). |
vestry |
Logical. |
unit |
Character. Milepost unit of measurement: "distance" or "time". |
interval |
Numeric. Interval between mileposts: 50 meters for "distance"; 60 seconds for "time". |
walking.speed |
Numeric. Walking speed in km/hr. |
type |
Character. "arrows" or "points". |
multi.core |
Logical or Numeric. |
dev.mode |
Logical. Development mode uses parallel::parLapply(). |
R base graphics arrows or points.