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

View source: R/walkingPath.R

plot.walking_pathR 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,
  mileposts = 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.

mileposts

Logical. Plot mile/time posts.

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)

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