Supporting resources for System Dynamics Society Workshop.
There are five objectives of the workshop, which are to:
- Understand data frames and plot simulation data using ggplot2
- Analyse sensitivity runs (based on output from SD simulation tools) with dplyr
- Build a model using deSolve
- Run a sensitivity sweep with purrr, deSolve and dplyr
- Create interactive simulation app using Shiny
The R code examples are in the directory R code
To run the code, it is recommended to setup an account on posit (posit.cloud (formerly known as RStudio Cloud)), and then use the option New Project from Git Repository, and enter https://github.com/JimDuggan/SDWorkshop.
Once the project is created, open the file install_packages.R
in the setup
folder, and click on the button called "Source", as this will run the file.
Any of the R files should then run ok.