R/comb_dist_plot.R

Defines functions make_comb_dist_plot

Documented in make_comb_dist_plot

#' Combine distribution plots
#' @export
#' @importFrom patchwork plot_layout plot_annotation
#' @importFrom ggplot2 theme_classic
make_comb_dist_plot <- function(risk_dist,
                                cardioresp_dist,
                                airway_dist,
                                ncmscs_total_dist) {
  comb <- risk_dist /
    cardioresp_dist /
    airway_dist /
    ncmscs_total_dist

  comb +
    plot_annotation(tag_levels = "A")&
    theme_classic()
}
awconway/nc-mscs documentation built on Feb. 17, 2021, 10:07 p.m.