Add the path for the Euclidean distance between cases and/or pumps.
addEuclideanPath(origin, destination = NULL, type = "case-pump",
observed = TRUE, case.location = "address", vestry = FALSE,
distance.unit = "meter", time.unit = "second", walking.speed = 5,
unit.posts = "distance", unit.interval = NULL, alpha.level = 1)
An R list with 3 data frames: x-y coordinates for the origin and destination, and a summary of results.
Numeric or Integer. Numeric ID of case or pump.
Numeric or Integer. Numeric ID(s) of case(s) or pump(s). Exclusion is possible via negative selection (e.g., -7). Default is NULL
: this returns closest pump or "anchor" case.
Character "case-pump", "cases" or "pumps".
Logical. Use observed or simulated expected data.
Character. For observed = FALSE
: "address" or "nominal". "address" is the x-y coordinate of a stack's "anchor" case. "nominal" is the x-y coordinate of a bar.
Logical. TRUE
uses the 14 pumps from the Vestry Report. FALSE
uses the 13 pumps from the original map.
Character. Unit of distance: "meter", "yard" or "native". "native" returns the map's native scale. See vignette("roads")
for information on unit distances.
Character. "hour", "minute", or "second".
Numeric. Walking speed in km/hr.
Character. "distance" for mileposts; "time" for timeposts; NULL
for no posts.
Numeric. Sets interval between unit.posts
.
Numeric. Alpha level transparency for path: a value in [0, 1].