cholera (version 0.2.1)

addWhitehead: Add Whitehead's Broad Street pump neighborhood.

Description

Adds a circle with a given radius from a specified water pump. By default, the function draws Whitehead's Broad Street pump neighborhood: a circle, centered on the Broad Street pump, with a radius of 210 yards.

Usage

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

Arguments

pump

Character. The name of the pump, the street name where it is located. 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

Draws a circle, based on multiple line segments, to a graphics plot.

See Also

snowMap, 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