Learn R Programming

cholera (version 0.4.0)

addPump: Add water pump by numerical ID.

Description

Add water pump to existing plot.

Usage

addPump(id, vestry = FALSE, col = NULL, pch = 24, label = TRUE,
  pos = 1, ...)

Arguments

id

Numeric or Integer. With "vestry = TRUE", a whole number between 1 and 14. With "vestry = FALSE", a whole number between 1 and 13. See cholera::pumps.vestry and cholera::pumps for IDs and details about specific pumps.

vestry

Logical. TRUE for the 14 pumps from Vestry Report. FALSE for the original 13 pumps.

col

Character. Color of point.

pch

Numeric. Shape of point character.

label

Logical. TRUE adds text label.

pos

Numeric. Position of label.

...

Additional plotting parameters.