plot_trajectory {pacta.loanbook} | R Documentation |
Create a trajectory plot
Description
Create a trajectory plot
Usage
plot_trajectory(data, center_y = FALSE, perc_y_scale = FALSE)
Arguments
data |
A data frame like the outputs of
|
center_y |
Logical. Use |
perc_y_scale |
Logical. |
Value
An object of class "ggplot".
See Also
Other plotting functions:
plot_emission_intensity()
,
plot_techmix()
,
prep_emission_intensity()
,
prep_techmix()
,
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
# plot with `qplot_trajectory()` parameters
data <- subset(
market_share_demo,
sector == "power" &
technology == "renewablescap" &
region == "global" &
scenario_source == "demo_2020"
)
data <- prep_trajectory(data)
plot_trajectory(
data,
center_y = TRUE,
perc_y_scale = TRUE
)