plot.euclidean: Plot method for neighborhoodEuclidean().

View source: R/euclideanNominal.R

plot.euclideanR Documentation

Plot method for neighborhoodEuclidean().

Description

Plot method for neighborhoodEuclidean().

Usage

## S3 method for class 'euclidean'
plot(x, type = "star", add = FALSE,
  add.observed.points = TRUE, alpha.level = 0.75, polygon.type = "solid",
  ...)

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

Logical. Add graphic to an existing plot.

add.observed.points

Logical. Add observed fatality "addresses".

alpha.level

Numeric. Alpha level transparency for area plot: a value in [0, 1].

polygon.type

Character. "perimeter" or "solid".

...

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)

lindbrook/cholera documentation built on March 5, 2025, 5:40 p.m.