
Generate Emergence Group Movement Gifs
create_emergence_group_gif.RdGenerate the figures and stitch together a GIF to evaluate emergence group movement over time, generally aggregated as cumulative per month
Usage
create_emergence_group_gif(
emergence_group,
pos,
dist,
ctry,
output_dir,
include_env = TRUE,
cumulative = TRUE,
fps = 2
)Arguments
- emergence_group
strDesignation of the emergence group to review.- pos
tibblePositives data set. This israw.data$pos, which is part of the output ofget_all_polio_data().- dist
sfShapefile of all districts.- ctry
sfShapefile of all countries.- output_dir
strDirectory where gif should be saved.- include_env
boolTo include environmental detections in analysis. Defaults toTRUE.- cumulative
boolTo display cases as cumulative. Defaults toTRUE.- fps
intFrames per second. Defaults to 2.
Examples
if (FALSE) { # \dontrun{
data <- get_all_polio_data(size = "medium")
pos <- data$pos
emergence_group <- "NIE-JIS-1"
dist <- data$global.dist
ctry <- data$global.ctry
include_env <- T
cumulative <- F
output_dir <- getwd()
create_emergence_group_gif(
emergence_group, pos, dist, ctry, include_env,
cumulative, output_dir
)
} # }