
Replicate labels produced with qplot_*() functions
Source: R/r2dii.plot.R
recode_metric_trajectory.Rdto_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().
See also
Other plotting functions:
plot_emission_intensity(),
plot_techmix(),
plot_trajectory(),
prep_emission_intensity(),
prep_techmix(),
prep_trajectory(),
qplot_emission_intensity(),
qplot_techmix(),
qplot_trajectory(),
recode_metric_techmix(),
scale_colour_r2dii(),
scale_colour_r2dii_sector(),
scale_colour_r2dii_tech(),
scale_fill_r2dii(),
scale_fill_r2dii_sector(),
scale_fill_r2dii_tech(),
spell_out_technology(),
theme_2dii(),
to_title()
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"