adjust to do groups of plots