Thursday, March 30, 2017

R: plotly and R Markdown

In (1) I showed how we can produce a dynamic Gantt chart in R using the plotly package. What about if we put this in an R markdown document? If we knit the document to HTML there is no problem. We see something like:

dgantt2

Now the question arises what happens when I produce a PDF (through LaTeX)? Interestingly that works: we get a static picture:

image

Obviously we cannot run JavaScript based interaction in a PDF file. Same thing with Word output:

image

References
  1. Gantt chart with R/plotly, http://yetanothermathprogrammingconsultant.blogspot.com/2017/03/gantt-chart-with-rplotly.html