Learn R Programming

cholera (version 0.7.0)

plot.euclidean: Plot method for neighborhoodEuclidean().

Description

Plot method for neighborhoodEuclidean().

Usage

# S3 method for euclidean
plot(x, type = "star", add.observed.points = TRUE,
  msg = FALSE, ...)

Arguments

x

An object of class "euclidean" created by neighborhoodEuclidean().

type

Character. "star", "area.points" or "area.polygons". "area" flavors only valid when case.set = "expected".

add.observed.points

Logical. Add observed fatality "addresses".

msg

Logical. Toggle in-progress messages.

...

Additional plotting parameters.

Value

A base R plot.

Examples

Run this code
# NOT RUN {
plot(neighborhoodEuclidean())
plot(neighborhoodEuclidean(-6))
plot(neighborhoodEuclidean(pump.select = 6:7))
plot(neighborhoodEuclidean(case.set = "expected"), type = "area.points")
plot(neighborhoodEuclidean(case.set = "expected"), type = "area.polygons")
# }

Run the code above in your browser using DataLab