Interactiv graphs with plotly
I believe, every person that has ever used statistics software such as R, Origin or Matlab is impressed by their ability to create beautiful, easy to understand plots from data.
However, these plots are usually pretty static, which is pretty much selfexplanatory, considering the ususal mode of scientific publishing. Recently, many journals offer to upload actual data from one’s research to create interactive plots in the online version of a scientific publication. This opens up so many new, amazing ways to visualize data and to keep track on what is happening.
I use ggplot2 since ever, to create R plots. If you know the syntax used for ggplot2, you are just a few lines away from creating an interactive plot, which can be shared or embedded via iframe or html. The plot below shows data from an actual long-term storage experiment, where we have monitored the development of CO2 under hermetic storage conditions. The plot is just a quick-and-dirty diagnostic graph and far from publishable, but given the inertactivity it is already pretty impressive. The dataset the plot is based on is shared with the plot, it can be forked, updated and manipulated. This does also allow to dynamically keep track of temperature and humidity in a room for example. Or the conditions within a storage systems for grains….
Edit: Plotly seems to have troubles interpreting datetime. The x-axis is set as
I will try to fix this.
with
I will try to fix this.
