View source: R/plot_trajectory.R
plot_trajectory | R Documentation |
Create a trajectory plot
plot_trajectory(data, center_y = FALSE, perc_y_scale = FALSE)
data |
A data frame like the outputs of
|
center_y |
Logical. Use |
perc_y_scale |
Logical. |
An object of class "ggplot".
market_share.
# plot with `qplot_trajectory()` parameters
data <- subset(
market_share,
sector == "power" &
technology == "renewablescap" &
region == "global" &
scenario_source == "demo_2020"
) %>%
prep_trajectory()
plot_trajectory(
data,
center_y = TRUE,
perc_y_scale = TRUE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.