Title: | Mind the Gap: 90-90-90 Trends and ART Coverage Gaps |
---|---|
Description: | Package to pull UNAIDS estimates as well as plot trends in UNAIDS 90-90-90 goals and ART coverage gap by country. |
Authors: | Aaron Chafetz [aut], Karishma Srikanth [aut, cre], Lemlem Baraki [aut], Tim Essam [aut] |
Maintainer: | Karishma Srikanth <[email protected]> |
License: | MIT + file LICENSE |
Version: | 1.1.2 |
Built: | 2024-11-11 06:17:37 UTC |
Source: | https://github.com/USAID-OHA-SI/mindthegap |
This function creates a summary table showing OU progress toward the 95-95-95's
base_plot(sel_base, sel_cntry)
base_plot(sel_base, sel_cntry)
sel_base |
Returns one of 2 table types eg "PLHIV", "Relative" |
sel_cntry |
PEPFAR country to visualize (list OU name) |
df_tt
## Not run: base_plot(sel_base = "PLHIV", sel_cntry = "Lesotho") base_plot(sel_base = "Relative", sel_cntry = "Lesotho") ## End(Not run)
## Not run: base_plot(sel_base = "PLHIV", sel_cntry = "Lesotho") base_plot(sel_base = "Relative", sel_cntry = "Lesotho") ## End(Not run)
This function creates epidemic control curves for "ALL PEPFAR" or selected OU's
epi_plot(sel_cntry = c("All PEPFAR"))
epi_plot(sel_cntry = c("All PEPFAR"))
sel_cntry |
PEPFAR country to visualize ("ALL PEPFAR" as default or list OU names) |
df |
UNAIDS based data frame |
Epidemic control plot showing trends in new infections and total deaths to HIV population
## Not run: epi_plot() epi_plot(sel_cntry = "Lesotho") epi_plot(sel_cntry = c("South Africa", "Zambia", "Kenya", "Malawi")) epi_plot(sel_cntry = "USA") #breaks with non-PEPFAR countries ## End(Not run)
## Not run: epi_plot() epi_plot(sel_cntry = "Lesotho") epi_plot(sel_cntry = c("South Africa", "Zambia", "Kenya", "Malawi")) epi_plot(sel_cntry = "USA") #breaks with non-PEPFAR countries ## End(Not run)
Deprecated
load_data(usaid_email = NULL)
load_data(usaid_email = NULL)
usaid_email |
USAID email to store file on GDrive |
## Not run: load_data("[email protected]") ## End(Not run)
## Not run: load_data("[email protected]") ## End(Not run)
(Updated July 2023)
This function fetches and cleans UNAIDS Estimates/Test and Treat Data
munge_unaids(return_type, indicator_type)
munge_unaids(return_type, indicator_type)
return_type |
Returns either 'HIV Estimates' or 'HIV Test & Treat' Data |
indicator_type |
Returns either 'Integer' or 'Percent' indicator values |
df
## Not run: munge_unaids(return_type = "HIV Test & Treat", indicator_type = "Percent") ## End(Not run)
## Not run: munge_unaids(return_type = "HIV Test & Treat", indicator_type = "Percent") ## End(Not run)
Pull clean UNAIDS estimates data. Wrapper around
pull_unaids
.
pull_estimates(pepfar_only = TRUE)
pull_estimates(pepfar_only = TRUE)
pepfar_only |
filters dataset to only PEPFAR countries if TRUE (default = TRUE) |
df
## Not run: pull_estimates() ## End(Not run)
## Not run: pull_estimates() ## End(Not run)
Pull clean UNAIDS 2022 (1990-2022) HIV Test & Treat data. Wrapper around
pull_unaids
.
pull_testtreat(pepfar_only = TRUE)
pull_testtreat(pepfar_only = TRUE)
pepfar_only |
filters dataset to only PEPFAR countries if TRUE (default = TRUE) |
df
## Not run: pull_testtreat() ## End(Not run)
## Not run: pull_testtreat() ## End(Not run)
Pull clean UNAIDS estimates
pull_unaids(data_type, pepfar_only = TRUE)
pull_unaids(data_type, pepfar_only = TRUE)
data_type |
returns one of 2 available data set types eg "HIV Estimates", "HIV Test & Treat" (or both if missing) |
pepfar_only |
filters dataset to only PEPFAR countries if TRUE (default = TRUE) |
df
## Not run: pull_unaids(data_type = "HIV Estimates", pepfar_only = TRUE) ## End(Not run)
## Not run: pull_unaids(data_type = "HIV Estimates", pepfar_only = TRUE) ## End(Not run)
Returns UNAIDS Source info for consistent sourcing notes
source_note
source_note
An object of class character
of length 1.
Generate UNAIDS headers
unaids_hdrs()
unaids_hdrs()
list of headers