prep_techmix {pacta.loanbook} | R Documentation |
Prepare data for plotting technology mix
Description
Prepare data for plotting technology mix
Usage
prep_techmix(
data,
convert_label = identity,
span_5yr = FALSE,
convert_tech_label = identity
)
Arguments
data |
A data frame. Requirements:
|
convert_label |
A symbol. The unquoted name of a function to apply to y-axis labels. For example:
|
span_5yr |
Logical. Use |
convert_tech_label |
A symbol. The unquoted name of a function to apply
to technology legend labels. For example, to convert labels to uppercase
use |
Value
A data-frame ready to be plotted using plot_techmix()
.
See Also
Other plotting functions:
plot_emission_intensity()
,
plot_techmix()
,
plot_trajectory()
,
prep_emission_intensity()
,
prep_trajectory()
,
qplot_emission_intensity()
,
qplot_techmix()
,
qplot_trajectory()
,
recode_metric_techmix()
,
recode_metric_trajectory()
,
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
# `data` must meet documented "Requirements"
data <- subset(
market_share_demo,
scenario_source == "demo_2020" &
sector == "power" &
region == "global" &
metric %in% c("projected", "corporate_economy", "target_sds")
)
prep_techmix(data)