to_title()converts labels likeqplot_emission_intensity().recode_metric_trajectory()converts labels likeqplot_trajectory().recode_metric_techmix()converts labels likeqplot_techmix().spell_out_technology()converts technology labels likeqplot_techmix().
Examples
to_title(c("a.string", "another_STRING"))
#> [1] "A String" "Another STRING"
metric <- c("projected", "corporate_economy", "target_xyz", "else")
recode_metric_trajectory(metric)
#> [1] "Portfolio" "Corporate Economy" "XYZ"
#> [4] "Else"
recode_metric_techmix(metric)
#> [1] "Portfolio" "Benchmark" "XYZ Scenario" "Benchmark"
spell_out_technology(c("gas", "ice", "coalcap", "hdv"))
#> [1] "Gas" "ICE" "Coal Capacity"
#> [4] "Heavy Duty Vehicles"
