Learn R Programming

r2dii.plot (version 0.5.2)

to_title: 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)

Value

A character vector.

Arguments

x

A character vector.

Examples

Run this code
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"))

Run the code above in your browser using DataLab