plot.euclidean: Plot method for neighborhoodEuclidean().

View source: R/euclidean.R

plot.euclideanR Documentation

Plot method for neighborhoodEuclidean().

Description

Plot method for neighborhoodEuclidean().

Usage

## S3 method for class 'euclidean'
plot(x, type = "star", add.observed.points = TRUE,
  add.title = 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".

add.title

Logical. Add title.

msg

Logical. Toggle in-progress messages.

...

Additional plotting parameters.

Value

A base R plot.

Note

This uses an approximate computation of polygons, using the 'TSP' package, that may produce non-simple and/or overlapping polygons.

Examples

## 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")

## End(Not run)

cholera documentation built on March 7, 2023, 5:31 p.m.