Example R code for stacked bar plot of UC enrollment by years