plot.euclidean {cholera}R 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)

[Package cholera version 0.8.0 Index]