use piamPlotComparison for comparing scenarios #19
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR moves the generic logic to create a compareScenarios pdf to the library piamPlotComparison.
R/transportCompareScenarios.R
is now executed directly in piamPlotComparison::compareScenariosThe following files are no longer needed:
inst/compareScenarios/csEDGET_main.Rmd
(moved to piamPlotComparison, EDGE-T specific code was moved toinst/compareScenarios/preprocessing.R
)inst/compareScenarios/cs2_latex_template.tex
andinst/compareScenarios/cs_pdf_header_include.tex
(moved to piamPlotComparison)inst/compareScenarios/cs2_plot_functions.R
(some functions were deleted as they were no longer used, others were moved to the notebook where they are used or to theinst/compareScenarios/preprocessing.R
)The section markdowns used to generate the current pdf are EDGE-T specific and remain in this repo. To work with the new framework, they were renamed to
cs_NN_TEXT.Rmd
(e.g.inst/compareScenarios/csEDGET_01_energy_demand.Rmd
->inst/compareScenarios/cs_01_energy_demand.Rmd
).Rmd files not used in the current cs2 plotting were left unchanged:
These must be renamed according to the naming scheme in order to include them.
For documentation on piamPlotComparison, please see: https://pik-piam.r-universe.dev/articles/piamPlotComparison/compareScenarios.html