skeleton for plotting residuals