Webinar Highlights & Recording: System Dynamics Modeling with R.
System Dynamics is a powerful approach to understanding complex systems in various fields, such as public health, ecology, and economics. Prof. Jim Duggan, an expert in applying System Dynamics and data science methods to public health, recently hosted a webinar on System Dynamics Modeling with R. In this session, Prof. Duggan provided insights into R’s capabilities for data analysis, visualization, and manipulation, as well as building and running Ordinary Differential Equation (ODE) models. Additionally, he discussed using R’s Shiny framework for creating interactive web apps and the prospect of forming a joint digital science tools group for R and Python users.
Exploring R’s Capabilities
Prof. Duggan showcased R’s potential by introducing packages such as ggplot2 and dplyr for data manipulation and visualization, deSolve for building models, and Tidyverse for data analysis. Moreover, he demonstrated creating interactive web apps using the Shiny package.
Visualizing Data with ggplot2 and GGCloud2
Ggplot2, a library from the Tidyverse, enables users to create graphs in R. Prof. Duggan demonstrated creating scatter plots with different visual properties, such as color, using the ggplot function with specific arguments. He also highlighted GGCloud2 as a flexible visualization tool that adds a fourth dimension to a plot using the facetwrap function.
Tidying Data in R
Prof. Duggan emphasized the importance of tidying data for easier processing in R. He showcased the use of pivot_longer for converting wide data into a tidy data format and dplyr as a powerful package for summarizing data. Techniques like grouping, summarizing, and data transformation can be performed using Tidyverse tools.
Building and Running ODE Models
R can be used to build and run ODE models, as Prof. Duggan demonstrated by defining stocks using vectors and generating models automatically with the deSolve package. He also discussed how Markov Chain Monte Carlo (MCMC) can be used to calibrate data using System Dynamics models, helping to find parameters from a dataset.
Interactive Web Apps with Shiny
Shiny, R’s framework for creating interactive web apps, was another key focus of the webinar. Prof. Duggan explained how Shiny’s reactive programming automatically updates outputs based on input changes, requiring minimal HTML, CSS, and JavaScript knowledge. The server function links inputs to outputs and generates new graphs based on input changes.
Conclusion
Prof. Jim Duggan’s webinar on System Dynamics Modeling with R provided valuable insights into the capabilities of R for data analysis, visualization, manipulation, and ODE model building. The session was an excellent resource for those interested in exploring R’s applications in System Dynamics and data science.
Watch the recording for more!
Watch the recording below
Whoops, this recording is available for members and ticket purchasers only. Please login to verify. If you’re not a member, purchase a membership here. You can also buy a ticket to watch the recording here.
About the Speakers
Prof. Jim Duggan’s research focus is the area of applying System Dynamics and data science methods to public health. This includes using System Dynamics to support pandemic preparedness and response, modeling scenarios of infectious disease outbreaks and applying agile software design methods to develop a safety planning mobile app to address suicidality in young people attending community mental health services in Ireland. Prof. Duggan is a Managing Editor for the System Dynamics Review and a member of the World Health Organisation’s Global Outbreak and Response Network (GOARN).
Recent Posts
A Close-Up on Our New Look
A Close-Up on Our New Look We are excited to reveal our new logo and branding, embodying the System Dynamics Society’s values and vision for the future. The looped arrows with an S curve symbolize growth, change over time, and commitment to raising complex...
Exploring Careers in System Dynamics
Exploring Careers in System Dynamics The Exploring Careers in System Dynamics webinar, held on March 29, 2023, was an engaging panel discussion featuring experts Sharon Els, Eduardo Romanenko, and Georg Pallaske, moderated by Shane Carnohan. Attendees had the...
Engaging Younger Audiences in Climate Change Education
Engaging Younger Audiences in Climate Change Education This webinar focused on engaging younger audiences in climate change education using the analogy of a bathtub. Linda Booth Sweeney, a systems educator, and author shared innovative ways to educate children about...
Upcoming Events

2023 Conference Early Bird Registration Deadline
Early bird registration deadline for both live and virtual conference registrations.
Recent Business cases
System Dynamics Helps Farmers Escape Poverty Trap in Guatemala
System Dynamics Helps Farmers Escape Poverty Trap in Guatemala EXECUTIVE Summary Guatemala holds the 4th highest global ranking for chronic malnutrition, and climate change is intensifying the challenges subsistence farmers face in providing food for their families....
Twinings Uses System Dynamics Games to Enhance HR Capability
Twinings Uses System Dynamics Games to Enhance HR Capability “Realistic simulation is a powerful approach to building capability. The business simulation developed [by Dashboard Simulations and Lane4] gave [Twinings staff] an experience that called for them to develop...
RSC Uses System Dynamics to Increase HVACR Sales Against the Tide
RSC Uses System Dynamics to Increase HVACR Sales Against the Tide “Using the proven Strategy Dynamic process focused our limited resources on organizing strategic issues, identifying the critical resources, and developing the insight to more rapidly create intuitive...