View source: R/addNeighborhoodCases.R
addNeighborhoodCases | R Documentation |
Add cases to a plot as "address" or "fatalities" and as points or IDs.
addNeighborhoodCases(pump.subset = NULL, pump.select = NULL, metric = "walking", type = "stack.base", token = "point", text.size = 0.5, pch = 16, point.size = 0.5, vestry = FALSE, weighted = TRUE, color = NULL, case.location = "nominal", alpha.level = 0.5, multi.core = TRUE)
pump.subset |
Numeric. Vector of numeric pump IDs to subset from the neighborhoods defined by |
pump.select |
Numeric. Numeric vector of pump IDs that define which pump neighborhoods to consider (i.e., specify the "population"). Negative selection possible. |
metric |
Character. Type of neighborhood: "euclidean" or "walking". |
type |
Character. Type of case: "stack.base" (base of stack), or "stack" (entire stack). For observed = TRUE. |
token |
Character. Type of token to plot: "point" or "id". |
text.size |
Numeric. Size of case ID text. |
pch |
Numeric. |
point.size |
Numeric. |
vestry |
Logical. |
weighted |
Logical. |
color |
Character. Use a single color for all paths. |
case.location |
Character. For |
alpha.level |
Numeric. Alpha level transparency for area plot: a value in [0, 1]. |
multi.core |
Logical or Numeric. |
## Not run: snowMap(add.cases = FALSE) addNeighborhoodCases(pump.subset = c(6, 10)) snowMap(add.cases = FALSE) addNeighborhoodCases(pump.select = c(6, 10)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.