Learn R Programming

cholera (version 0.5.1)

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 = TRUE, radius = 0.5,
  unit.posts = "distance", unit.interval = NULL, ...)

Arguments

x

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

zoom

Logical.

radius

Numeric. Controls the degree of zoom.

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

Run this code
# NOT RUN {
plot(euclideanPath(15))
plot(euclideanPath(15), unit.posts = "time")
# }

Run the code above in your browser using DataLab