Convert time values so heatmap will show up

Ah, so your dates have gaps and you want to avoid gaps.
There are two solutions that I know of:

  1. Use categories and just specify factors with gaps
  2. Convert ordered dates into indices and use the solution from here: How do I make omit missing dates gaps in graph when using datetime as x-axis - #2 by Alexandre_Daly