Skip to contents

Creates a combined plot of several metrics.

Usage

combine_plots(
  metrics,
  data_mean_weighted = NULL,
  data_mean_weighted_rf_wide = NULL,
  data_mean_weighted_inc_wide = NULL,
  data_weighted_burden_wide_collapse = NULL,
  data_ple_wide = NULL,
  output_file
)

Arguments

metrics

A list specifying the metrics to plot.

data_mean_weighted

A data frame with weighted mean values for various metrics.

data_mean_weighted_rf_wide

A data frame containing the weighted mean values of risk factors.

data_mean_weighted_inc_wide

A data frame containing the weighted mean values of incidences.

data_weighted_burden_wide_collapse

A data frame with differences between intervention and baseline values for burden of disease.

data_ple_wide

A data frame containing the life expectancy.

output_file

Name of the output PDF as a string

Value

A combined ggplot object arranged in a grid.