View source: R/qplot_trajectory.R
qplot_trajectory | R Documentation |
Compared to plot_trajectory()
this function:
is restricted to plotting only 5 years from the start year,
outputs pretty legend labels, based on the column holding metrics,
outputs a title,
outputs a subtitle,
outputs informative axis labels in sentence case.
qplot_trajectory(data)
data |
A data frame. Requirements:
|
An object of class "ggplot".
plot_trajectory
# `data` must meet documented "Requirements"
data <- subset(
market_share,
sector == "power" &
technology == "renewablescap" &
region == "global" &
scenario_source == "demo_2020"
)
qplot_trajectory(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.