analyzeData migrated into plotHelpers