50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

cholera (version 0.5.1)

plot.walking_path: 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 walking_path
plot(x, zoom = TRUE, radius = 0.5,
  unit.posts = "distance", unit.interval = NULL, alpha.level = 1,
  ...)

Arguments

x

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

zoom

Logical.

radius

Numeric. Control 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 = "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.

Examples

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

Run the code above in your browser using DataLab