make_overall_plot_df: CES Overall plot data frame

View source: R/overall_df_plots.R

make_overall_plot_dfR Documentation

CES Overall plot data frame

Description

A function to make a data frame to use for plotting for the overall cases (not disaggregated by sex or attend).

Function to make SCI theme for plots if none passed to make_overall_plot.

Usage

make_overall_plot_df(survey_estimates, reported_df)

make_sci_theme()

Arguments

survey_estimates

A data frame containing the output from the estimate_cs_values function.

reported_df

A data frame on containing the reported coverage data. Needs to have the following four columns:

  • group - Denotes what group the reported data applies to (e.g., "SAC" or "Adult").

  • drug - Denotes the three letter abbreviation of the drug the reported data applies to (e.g., "PZQ").

  • partition - Denotes the partition the reported data applies to (e.g., "District X", "Commune Y").

  • estimate - Denotes the reported coverage data.

Value

A data frame containing the information from the survey estimates and the reported data in a format suitable to be passed to ggplot, in particular the make_overall_plot function.


SCIFoundation/sciCoverageR documentation built on Oct. 31, 2024, 11:45 p.m.