Learn R Programming

cholera (version 0.5.1)

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, subtitle = FALSE,
  walking.speed = 5, ...)

Arguments

pump

Character or Numeric. Name (road name) or numerical ID of selected pump. 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.

subtitle

Logical. Add subtitle with estimated "walking" time in seconds.

walking.speed

Numeric. Walking speed in km/hr.

...

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