palette_gtb | R Documentation |
Colour palettes for variables that appear in multiple charts in the WHO Global TB Report
palette_gtb(var_name)
var_name |
Name of the variable being plotted |
A hexadecimal colour code, or an empty string if var_name was not recognised.
var_name is not case sensitve. It must be one of:
TB burden estimates:
- "inc" (incidence)
- "inch" (HIV-positive incidence)
- "mort" (mortality)
Disaggregation by sex:
- "female"
- "male"
Disaggregated by WHO region:
- "afr"
- "amr"
- "emr"
- "eur"
- "sear"
- "wpr"
Treatment outcomes:
- "succ" (treatment success)
- "fail" (treatment failure)
- "died" (died)
- "ltfu" (lost to follow-up)
- "neval" (not evaluated)
- "no_outcomes" (no outcomes data reported)
: Hazim Timimi
p <- ggplot2::ggplot(mtcars, aes(wt, mpg)) +
geom_point(size = 3, colour = palette_gtb("inc")) +
theme_gtb()
print(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.