Learn R Programming

cholera (version 0.8.0)

plot.euclidean_path: 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 euclidean_path
plot(x, zoom = 0.5, unit.posts = "distance",
  unit.interval = NULL, ...)

Value

A base R plot.

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.

Examples

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

Run the code above in your browser using DataLab