Export timeseries for a group of countries
Source:R/export_plot_timeseries.R
export_plot_timeseries_indicator_iso3_group.Rd
export_plot_timeseries_indicator_pdf
exports plots to pdf.
Usage
export_plot_timeseries_indicator_iso3_group(
df,
iso3_group,
indicator,
output_folder,
scale,
value_col,
default_scenario,
start_year,
experiment
)
Arguments
- df
Data frame in long format, where 1 row corresponds to a specific country, year, and indicator.
- iso3_group
named list of iso3 to be ploted
- indicator
name of indicator to plot
- output_folder
Folder path to where the Excel files should be written
- scale
type of scale to be exported. Can be either:
common
: same scale for all iso3free
: individual scale for each iso3combined
: combination of common and free. By default,combined
is used
- value_col
Column name of column with indicator values.
- default_scenario
name of the default scenario.
- start_year
Base year for contribution calculation, defaults to 2018.
- experiment
name of the experiment of plots. Default to NULL. If used, a new folder will be added to
output_folder
to store the results.