plot_epi: Draw the epidemic curve

View source: R/plot_epi.R

plot_epiR Documentation

Draw the epidemic curve

Description

Plot epidemic curve (time series of incident cases); epidemic curve (time series of incident cases) is the most common way to characterize temporal pattern of an outbreak.

Usage

plot_epi(t, interval = c("day", "week", "month"), plot.points = NULL)

Arguments

t

Vector of time of data points.

interval

Character; time resolution(day, week, month) of animation ; aggregrate data through day, week or month.

plot.points

Logical; if TRUE points of line chart will be marked.

Examples

data("EpiTrans")

plot_epi(t = dengue$date, interval ="week")

wenlab501/EpiTrans documentation built on July 8, 2022, 9:14 a.m.