Code for graphs of proportion of leaf ages over time and stats