plot.walking_path {cholera}R Documentation

Plot the walking path between selected cases and/or pumps.

Description

Plot the walking path between selected cases and/or pumps.

Usage

## S3 method for class 'walking_path'
plot(x, zoom = 0.5, stacked = TRUE,
  unit.posts = "distance", unit.interval = NULL, alpha.level = 1, ...)

Arguments

x

An object of class "walking_path" created by walkingPath().

zoom

Logical or Numeric. A numeric value >= 0 controls the degree of zoom. The default is 0.5.

stacked

Logical. Use stacked fatalities.

unit.posts

Character. "distance" for mileposts; "time" for timeposts; NULL for no posts.

unit.interval

Numeric. Set interval between posts. When unit.posts = "distance", unit.interval defaults to 50 meters. When unit.posts = "time", unit.interval defaults to 60 seconds.

alpha.level

Numeric. Alpha level transparency for path: a value in [0, 1].

...

Additional plotting parameters.

Value

A base R plot.

Note

Arrows represent mileposts or timeposts to the destination.

Examples

## Not run: 
plot(walkingPath(15))
plot(walkingPath(15), unit.posts = "time")

## End(Not run)

[Package cholera version 0.8.0 Index]