Sunday, March 19, 2017

Gantt Chart with R/Plotly

Plotly (1) is a great graphics library for producing dynamic plots. It also has an R interface. A simple example of a Gantt chart with R/plotly is shown in (2). Here is a more complicated version: a job shop problem with 10 jobs and 10 stages (3).

image 

The colors correspond to the machine used in each stage. Machines are numbered 0…9.

dgantt

 

References
  1. Plotly: https://plot.ly/
  2. https://www.r-bloggers.com/gantt-charts-in-r-using-plotly/
  3. Playing with job shop problem ft10 (1), http://yetanothermathprogrammingconsultant.blogspot.com/2014/04/playing-with-ft10-job-shop-1.html