corrected bug in yearplots to handle "mean" variant