Sunday 21 January 2018

ggplot2 Time Series Heatmaps: revisited in the tidyverse

I revisited my previous post on creating beautiful time series calendar heatmaps in ggplot, moving the code into the tidyverse.
To obtain following example:


Simply use the following code:
I hope the commented code is self-explanatory - enjoy :-)

3 comments:





  1. Theres an error:

    > xts_heatmap(Cl(VIX)) + labs(title="Heatmap of VIX")
    Show Traceback

    Rerun with Debug
    Error in mutate_impl(.data, dots) :
    Evaluation error: unused argument (week_start = 1).

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Hi,

    Thanks for the great work, sharing the amazing visualization and also for packaging it into a useable function.

    I would like to make this visualization more interactive where the number for a certain day pops up when selected. Would you be kind enough to give suggestions or recommendations for making it happen?

    Thanks
    Kumar

    ReplyDelete