plot_dxinc_totals: Plot total incident diagnosed cases (E and I)

Description Usage Arguments Value

View source: R/02_model_output_calc_plot_functions.R

Description

plot_dxinc_totals plot total number of incident diagnosed cases (E and I) by age group and/or in total over time.

Usage

1
2
3
4
5
6
7
plot_dxinc_totals(
  l_out_cosmo,
  proportion = FALSE,
  age_proportion = FALSE,
  only_all = TRUE,
  print_plot = TRUE
)

Arguments

l_out_cosmo

List with output from SC-COSMO and all parameters.

proportion

Flag (default is FALSE) of whether to divide total incident diagnosed cases (E and I) by total population.

age_proportion

Flag (default is FALSE) of whether to divide total incident diagnosed cases (E and I) by age-specific total population.

only_all

Flag (default is TRUE) of whether only overall ("All") total total incident diagnosed cases (E and I) should be plotted.

print_plot

Flag (default is TRUE) of whether the plot should be printed in screen.

Value

A ggplot object.


SC-COSMO/sccosmomcma documentation built on Dec. 18, 2021, 11:56 a.m.