modified histogram function to run on the newly names inputs (d1 changed to prop.df and r.across.years changed to outSummary)