latlongEuclideanPath: Plot Euclidean path to nearest pump (prototype).

View source: R/latlongEuclideanPath.R

latlongEuclideanPathR Documentation

Plot Euclidean path to nearest pump (prototype).

Description

Plot Euclidean path to nearest pump (prototype).

Usage

latlongEuclideanPath(case = 1, destination = NULL, vestry = FALSE,
  distance.unit = "meter", time.unit = "second", walking.speed = 5,
  case.location = "nominal", multi.core = TRUE)

Arguments

case

Numeric.

destination

Numeric. Pump ID.

vestry

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

distance.unit

Character. Unit of distance: "meter" or "yard".

time.unit

Character. "hour", "minute", or "second".

walking.speed

Numeric. Walking speed in km/hr.

case.location

Character. For observed = FALSE: "address" or "nominal". "nominal" is the x-y coordinates of regular.cases.

multi.core

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.


lindbrook/cholera documentation built on April 14, 2024, 6:29 a.m.