Create a choropleth map of Gender Disparity Ratio
Arguments
- data
A data.frame with at least:
iso3,gdr, and optionallyyear. Usemerge_location_type()to addiso3toqci_gdr()output.- years
Integer vector. Default
NULL(all).- breaks
Numeric vector of GDR breakpoints. Default
c(0, 0.5, 0.95, 1.05, 2.0, Inf).- labels
Character vector of labels for GDR bins. Default
c("< 0.5", "[0.5, 0.95)", "[0.95, 1.05]", "(1.05, 2.0]", "> 2.0").- colors
Character vector of 5 colors. Default grey-to-purple scale.
- title
Character. Default
NULL(auto-generated).- legend_title
Character. Default
"Age-standardized GDR".
Examples
if (FALSE) { # \dontrun{
result <- qci_pipeline(sample_gbd)
gdr <- qci_gdr(result$wide)
gdr_map <- merge_location_type(gdr)
plot_gdr_map(gdr_map, years = c(1990, 2019))
} # }