residplot {qpcR}R Documentation

A residuals bar-plot with colour-coded bars

Description

A simple plotting function which displays a barplot of the residuals of any object from which residuals can be extracted. The bars are colour-coded with heat colours proportional to the residual value.

Usage

 residplot(object, ...)

Arguments

object either residuals (numeric) or any fitted object, i.e. of class lm, drc, nls etc.
... any other parameters to be passed to barplot.

Value

A plot as described above.

Author(s)

Andrej-Nikolai Spiess

Examples

### create l5 model and plot residuals
m1 <- pcrfit(reps, 1, 2, l5())
residplot(m1)
### compare to l4 model (added smaller bars)
m2 <- pcrfit(reps, 1, 2, l4())
residplot(m2, add = TRUE, width = 0.5, space = c(1.4, 0.9))

[Package qpcR version 1.1-8 Index]