Description Usage Arguments Value
Plot cases and deaths and trends into a single graphic plot
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"
)
 | 
dta | 
 daily case and death data for country  | 
df_trends | 
 trend preds etc for country  | 
add_title | 
 add a title to plot?  | 
ggplot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.