powered by
This routine can be used to plot the estimated reproduction number based on an object of class Rt.
Rt
# S3 method for Rt plot(x, datelab = "7d", cilevel = 0.95, col = "black", cicol = "gray", xtickangle = 0, legendpos = "right", title = "Estimated R", addfit = c("none","Cori","WT"), theme = "gray", timecut = 0,...)
A plot of the fitted time-varying reproduction number.
An object of class Rt.
Spacing for the ticks on the x-axis.
Level of the credible interval.
Color of the fitted \(R_t\) curve for LPS.
Color for shading the credible envelope.
Angle of the x-ticks. Default is 0 (horizontal).
Position of the legend.
Title of the plot.
Should an additional \(R_t\) fit be added?
Theme, either "gray", "classic", "light", "dark"
Cut time points on plot.
Further arguments to be passed to plot.
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 = 2, endepi = 30) epifit <- estimR(incidence = epidemic$y, K = 30, si = si) plot(epifit)
Run the code above in your browser using DataLab