Aggregating pheno dataset to plot by date. Must be a more efficient way