Learn R Programming

cholera (version 0.4.0)

addWhitehead: Add Rev. Henry Whitehead's Broad Street pump neighborhood.

Description

A circle (polygon), centered around a desired pump with a radius of 210 yards. The Broad Street pump is the default.

Usage

addWhitehead(pump = "Broad Street", radius = 210, color = "black",
  line.type = "solid", vestry = FALSE, ...)

Arguments

pump

Character. Name of selected pump (road name). See pumps or pumps.vestry.

radius

Numeric. Distance from a pump in yards

color

Character. Color of circle.

line.type

Character. Circle line type.

vestry

Logical. TRUE uses the 14 pumps and locations from Vestry report. FALSE uses original 13 pumps.

...

Additional plotting parameters.

Value

Adds a circle (polygon) to a graphics plot.

See Also

snowMap, addIndexCase, addKernelDensity, addLandmarks, addPlaguePit, addSnow, addVoronoi

addLandmarks

Examples

Run this code
# NOT RUN {
snowMap(add.landmarks = FALSE)
addWhitehead()
# }

Run the code above in your browser using DataLab