to_title: Replicate labels produced with qplot_*() functions

View source: R/to_title.R

to_titleR Documentation

Replicate labels produced with ⁠qplot_*()⁠ functions

Description

  • to_title() converts labels like qplot_emission_intensity().

  • recode_metric_trajectory() converts labels like qplot_trajectory().

  • recode_metric_techmix() converts labels like qplot_techmix().

  • spell_out_technology() converts technology labels like qplot_techmix().

Usage

to_title(x)

recode_metric_techmix(x)

recode_metric_trajectory(x)

spell_out_technology(x)

Arguments

x

A character vector.

Value

A character vector.

Examples

to_title(c("a.string", "another_STRING"))

metric <- c("projected", "corporate_economy", "target_xyz", "else")
recode_metric_trajectory(metric)

recode_metric_techmix(metric)

spell_out_technology(c("gas", "ice", "coalcap", "hdv"))

r2dii.plot documentation built on May 31, 2023, 6:46 p.m.