plot_epicurve | R Documentation |
(EPI WEEK) Visualize epi curve by epi-weeks (Monday-Sunday) and by WHO region(s), State region(s), or Income levels.
plot_epicurve(df, by_cat = "WHO Region", legend = "in", transparent = T)
df |
A dataframe with the following: date, new_cases and one of these columns for by_cat: who_region, state_region, or incomelevel_value. Produces an epi curve, stacked bar plot for each epi-week (Monday-Sunday). |
by_cat |
= "WHO Region" (default), "State Region" or "Income Level" |
legend |
Default "in" - position legend inside the plot area. |
transparent |
Default TRUE - returns a transparent plot. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.