create more general redrawPlot function and have redraw.recordedplot  call down to it