residuals
can be extracted. The bars are colour-coded with heat colours proportional to the residual value.residplot(object, ...)
lm
, drc
, nls
etc.barplot
.### 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))
Run the code above in your browser using DataLab