Learn R Programming

cholera (version 0.9.1)

addCase: Add observed case(s) to plot.

Description

Add case(s), as "anchor", "fatality" or "orthogonal" as points or IDs, to a plot.

Usage

addCase(case = 1, latlong = FALSE, type = "observed", token = "both",
  text.size = 0.5, pch = 1, cex = 1, point.lwd = 2, col = "black",
  pos = 1)

Arguments

case

Numeric or Character. Vector of case ID(s). "anchor" plots anchor cases; "fatality" plots all cases; "orthogonal" plot projected addresses.

latlong

Logical.

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.

pch

Numeric. pch.

cex

Numeric. cex.

point.lwd

Numeric. Point lwd.

col

Character. Color.

pos

Numeric. Text position.

Examples

Run this code
if (FALSE) {
snowMap(add.cases = FALSE)
addCase(1)

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

Run the code above in your browser using DataLab