shift.window redefined in plotSmoothAverages.R