reworking data for spaghetti plots