baplot: Bland-Altman plot

Usage Arguments Value Examples

Usage

1
baplot(y, yhat, sample = seq(1, length(y), by = 1), nsd = 3, ...)

Arguments

y

actual values

yhat

predicted values

sample

Name of samples

nsd

a numeric value multiplied to the standard deviations. The product is used for determining the limits of agreement.

...

additional arguments passed to the plot.

Value

Bland-Altman plot

Examples

1
2
3
4
data(peach)
peach.pls <- plsr(Brix ~ NIR, ncomp = 5, data = peach, validation = "CV")
yhat <- peach.pls$fitted.values[, , 5]
baplot(peach$Brix, yhat, sample = rownames(peach), nsd = 3)

uwadaira/plsropt documentation built on May 3, 2019, 2:39 p.m.