plot.euclidean_path {cholera}R Documentation

Plot the path of the Euclidean distance between cases and/or pumps.

Description

Plot the path of the Euclidean distance between cases and/or pumps.

Usage

## S3 method for class 'euclidean_path'
plot(x, zoom = 0.5, unit.posts = "distance", unit.interval = NULL, ...)

Arguments

x

An object of class "euclidean_path" created by euclideanPath().

zoom

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

unit.posts

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

unit.interval

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

...

Additional plotting parameters.

Value

A base R plot.

Examples

plot(euclideanPath(15))
plot(euclideanPath(15), unit.posts = "time")

[Package cholera version 0.7.5 Index]