modifying spaghettiPlot to new data format.