Addition of plotPriorities graphics function