
Last chance! 50% off unlimited learning
Sale ends in
## S3 method for class 'perf':
plot(x, criterion = c("MSEP", "RMSEP", "R2", "Q2"),
pred.method = "all",
xlab = "number of components", ylab = NULL,
LimQ2 = 0.0975, LimQ2.col = "darkgrey",
cTicks = NULL, layout = NULL, ...)
perf
object.pls
or spls
. One of "MSEP"
, "RMSEP"
, "R2"
or "Q2"
.
See perf
.perf
for plsda
or splsda
.
See perf
.expression(R^2)
).LimQ2 = 0.0975
.LimQ2
line to be plotted.
If "none"
the line will not be plotted.1:ncomp
(see perf
).plot.perf
tries to be intelligent.xyplot
function.plot.perf
creates one plot for each response variable in the
model, laid out in a multi panel display. It uses xyplot
for
performing the actual plotting.pls
, spls
, plsda
, splsda
,
perf
.require(lattice)
## validation for objects of class 'pls' or 'spls'
data(liver.toxicity)
X <- liver.toxicity$gene
Y <- liver.toxicity$clinic
liver.pls <- pls(X, Y, ncomp = 3)
liver.perf <- perf(liver.pls, validation = "Mfold")
plot(liver.perf, criterion = "R2", type = "l", layout = c(2, 2))
Run the code above in your browser using DataLab