Various plots from data.gov.bg data.

c19_var_plot(
  chart,
  roll_func = NULL,
  roll_window = 7,
  roll_align = "right",
  roll_fill = NA,
  line_legend = NULL,
  country_data = c19_bg_data()
)

Arguments

chart

one of: "casesdeaths" | "age" | "dis" | "cases" | "hospitalized" | "positivity" | "pospcr" | "posag"

roll_func

function to roll, e.g. mean (default NULL = raw daily)

roll_window

window for roll func in days (e.g. 7, 14)

roll_align

rolling alignment (default: "right")

roll_fill

fill missing values for rolling function (default: NA)

line_legend

regular expression specifying lines that should be labelled in-plot

country_data

country data

See also