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,
  type = "cases",
  by_cat = "WHO Region",
  legend = "in",
  inset = FALSE,
  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.

inset

(default: FALSE)

transparent

Default TRUE - returns a transparent plot.


CDCgov/SaviR documentation built on April 14, 2025, 7:46 a.m.