palette_gtb: Colour palettes for variables that appear in multiple charts...

View source: R/palette_gtb.R

palette_gtbR Documentation

Colour palettes for variables that appear in multiple charts in the WHO Global TB Report

Description

Colour palettes for variables that appear in multiple charts in the WHO Global TB Report

Usage

palette_gtb(var_name)

Arguments

var_name

Name of the variable being plotted

Value

A hexadecimal colour code, or an empty string if var_name was not recognised.

Note

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)

Author(s)

: Hazim Timimi

Examples

p <- ggplot2::ggplot(mtcars, aes(wt, mpg)) +

              geom_point(size = 3, colour = palette_gtb("inc")) +

              theme_gtb()
print(p)


glaziou/gtbreport documentation built on July 12, 2024, 5:05 p.m.