Renamed function
Included method to generate heatmap of timeseries for three groups