Truck haulage simulation animation in Python

In this article I will share a discrete-event simulation animation example in Python. More specifically a truck haul transport simulation animation for a mine, using SimPy and DesViz in Python. This example, and the DesViz module, was developed by Prof. Paul Corry and his team and I am resharing his example in this post. Using […]

Agent-based SIR model Python example

In this article I implement a SIR model in Python, using a library that I developed for agent-based modeling in Python. In other words, I use an existing framework to implement an agent-based SIR model. Introducing agent-based SIR model SIR stands for susceptible, infected, and recovered. As illustrated in below figure, in a SIR model, […]

Monte-carlo animation with gganimate

In this article I implement a monte-carlo animation using gganimate in R. In one of my previous posts I introduced monte-carlo simulation. Monte-carlo simulation is one of the widely applied simulation techniques in supply chain management and operations management. I explained how one can assess the risk associated with stock price volatility using monte-carlo simulation. […]

ggplot2 animation with gganimate in R

gganimate converts any ggplot2 visualization into a ggplot2 animation. I have already published various posts containing gganimate animations. For R programmers or analysts with proficiency in R this is a very interesting package. See e.g. my blog post introducing comtradr for international trade analysis (containing an animation created with gganimate) and my post containing spatial data […]

Commodity trade analysis with comtradr in R

I have already introduced various interfaces in R and Python for querying data directly from within a script. Examples covered by me inlcuded the OECD database and its interface in R, i.e. the OECD package in R. I also e.g. covered twitteR, Google trends and the EUROSTAT R-package. In this post I will use another package: comtradr. […]