epicurve | R Documentation |
This routine gives a graphical representation of the epidemic curve based on an incidence time series.
epicurve(incidence, dates = NULL, datelab = "7d", col = "deepskyblue4", barwidth = 1,
title = "Epidemic curve", xtickangle = 0, smooth = NULL, smoothcol = "orange")
incidence |
A vector containing the incidence time series |
dates |
A vector of dates in format "YYYY-MM-DD". |
datelab |
The spacing for ticks on the x-axis. Default "7d". |
col |
The color of the epidemic curve. |
barwidth |
The width of the bars. Default is 1. |
title |
Title of the plot. |
xtickangle |
The angle of the x-ticks. Default is 0 (horizontal). |
smooth |
An object of class Rt obtained with the |
smoothcol |
The color of the smoothed curve and associated credible interval. |
A plot of the epidemic curve.
Oswaldo Gressani oswaldo_gressani@hotmail.fr
si <- c(0.05, 0.05, 0.1, 0.1, 0.1, 0.1, 0.1, 0.05, 0.05, 0.1, 0.1, 0.1)
epidemic <- episim(si = si, Rpattern = 4)
epicurve(epidemic$y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.