country_plot: Plot cases and deaths and trends into a single graphic plot

Description Usage Arguments Value

View source: R/graphics.R

Description

Plot cases and deaths and trends into a single graphic plot

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
country_plot(
  dta,
  df_trends,
  cases_lab = "cases",
  deaths_lab = "deaths",
  ylab_curve = "Frequency",
  title_curve = "Since the first cases reported",
  title_mdl1 = "Last 30 days",
  title_mdl2 = "Last 14 days",
  ylab_mdl = "Frequency and fitted values",
  caption = "Fitted using a linear regression model",
  add_title = FALSE,
  title = "COVID-19 case and death trend estimations in"
)

Arguments

dta

daily case and death data for country

df_trends

trend preds etc for country

add_title

add a title to plot?

Value

ggplot


epicentre-msf/covidutils documentation built on July 22, 2021, 1:03 p.m.