A plotting function which displays a barplot of the (standardized) residuals. The bars are colour-coded with heat colours proportional to the residual value. As default, the residuals are displayed together with the points of the fitted PCR curve.
Usage
resplot(object, overlay = TRUE, ylim = NULL, ...)
Arguments
object
an object of class 'pcrfit.
overlay
logical. If TRUE, the residuals are plotted on top of the fitted curve, else alone.
ylim
graphical ylim values for tweaking the scale and position of the barplot overlay.
If replicate data is present in the fitted curve, the residuals from all replicates $i, j$ are summed up from the absolute values: $Y_i = \sum{|\hat{\varepsilon}_{i, j}|}$.