prep_trajectory {pacta.loanbook} | R Documentation |
Prepare data for a trajectory plot
Description
Prepare data for a trajectory plot
Usage
prep_trajectory(
data,
convert_label = identity,
span_5yr = FALSE,
value_col = "percentage_of_initial_production_by_scope"
)
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 |
value_col |
Character. Name of the column to be used as a value to be plotted. |
Value
A data-frame ready to be plotted using plot_trajectory()
.
See Also
Other plotting functions:
plot_emission_intensity()
,
plot_techmix()
,
plot_trajectory()
,
prep_emission_intensity()
,
prep_techmix()
,
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,
sector == "power" &
technology == "renewablescap" &
region == "global" &
scenario_source == "demo_2020"
)
prep_trajectory(data)