witch-plot - A library of (static and dynamic) plotting tools for the WITCH model and DICE/RICE model series.
Started in 2014 by Johannes Emmerling to have quick and reproducible sets of graphs for diagnostics, inspection, and publication.
- Installation: Install R, Rtools, RStudio, GAMS, Github Desktop, (and optionally VSCode as advanced editor)
- R from https://cran.r-project.org/bin/windows/base/
- Rtools from https://cran.r-project.org/bin/windows/Rtools/
- RStudio from https://rstudio.com/products/rstudio/download/#download
- GAMS from https://www.gams.com/download/ (Run the installer in advanced mode and mark the check-box
Add GAMS directory to PATH environment variable
). - GitHub Desktop from https://desktop.github.com/ and log-in with your personal GitHub account.
- VisualStudio Code from https://code.visualstudio.com/ (optional)
Get the source code either cloning it in Github desktop (preferred), download it from https://github.com/witch-team/witch-plot, or using git at the command line.
To run the program, open the folder "witch-plot" in Rstudio as a project or execute on the command line
Rscript plotgdx_[witch|rice].R
The script will automatically search all results_*.gdx files in the specified folder in the second line of the script and include all in the analysis and plots.
Loads the variable "varname" from all results GDX files and stores them in a data.frame names "varname".
ShinyApp based dynamic comparison tool for multiple results files. Simply run 'runApp(appDir = "gdxcompaR/witch")' or runApp(appDir = "gdxcompaR/rice") to launch the interactive App after sourcing the main file 'plotgdx_witch.R' or 'plotgdx_rice.R'.
For further information please contact johannes.emmerling@eiee.org