Description Usage Arguments Value Examples
View source: R/prepare_for_trajectory_chart.R
Prepares pre-processed data for plotting a trajectory chart
1 2 3 4 5 6 7 8 9 10 | prepare_for_trajectory_chart(
data_preprocessed,
sector_filter,
technology_filter,
region_filter,
scenario_source_filter,
value_name,
end_year_filter = 2025,
normalize_to_start_year = TRUE
)
|
data_preprocessed |
Pre-processed input data. |
sector_filter |
Sector for which to filter the data (character string). |
technology_filter |
Technology for which to filter the data (character string). |
region_filter |
Region for which to filter the data (character string). |
scenario_source_filter |
Scenario source for which to filter the data (character string). |
value_name |
The name of the value to be plotted in the trajectory chart (character string). |
end_year_filter |
Cut-off year for the chart (an integer). |
normalize_to_start_year |
Flag indicating whether the values should be normalized (boolean). |
A data frame.
1 2 3 4 5 6 7 8 9 10 | raw <- example_data
processed <- process_input_data(raw)
prepare_for_trajectory_chart(
processed,
sector_filter = "power",
technology_filter = "oilcap",
region_filter = "global",
scenario_source_filter = "demo_2020",
value_name = "production"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.