Learn R Programming

cholera (version 0.7.0)

addCase: Add observed case(s).

Description

Add case(s), as "address" or "fatalities" as points or IDs, to a plot.

Usage

addCase(case = 1, type = "observed", token = "both",
  text.size = 0.5, col = "red", pos = 1)

Arguments

case

Numeric. Vector of case ID(s).

type

Character. Type of case: "observed" or "expected".

token

Character. Type of token to plot: "point", "id" or "both".

text.size

Numeric. Size of case ID text.

col

Character. Color.

pos

Numeric. Text position.

Examples

Run this code
# NOT RUN {
snowMap(add.cases = FALSE)
addCase(1)

snowMap(add.cases = FALSE)
addCase(100)
# }

Run the code above in your browser using DataLab