plot_epicurve: plot_epicurve

View source: R/viz_plots.R

plot_epicurveR Documentation

plot_epicurve

Description

(EPI WEEK) Visualize epi curve by epi-weeks (Monday-Sunday) and by WHO region(s), State region(s), or Income levels.

Usage

plot_epicurve(df, by_cat = "WHO Region", legend = "in", transparent = T)

Arguments

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.


randyyee/SaviR documentation built on Jan. 25, 2025, 10:44 a.m.