| plot.mvr {pls} | R Documentation |
plot.mvr plots predictions, coefficients, scores, loadings, biplots or
validation plots (RMSEP curves, etc.).
## S3 method for class 'mvr':
plot(x, plottype = c("prediction", "validation", "coefficients",
"scores", "loadings", "biplot"), ...)
x |
an object of class mvr. The fitted model to plot. |
plottype |
character. What kind of plot to plot. |
... |
further arguments, sent to the underlying plot functions. |
The function is simply a wrapper for the underlying plot functions
used to make the selected plots. See predplot.mvr,
validationplot, coefplot,
scoreplot, loadingplot or
biplot.mvr for details. Note that all arguments except
x and plottype must be named.
plot.mvr returns whatever the underlying plot function returns.
Ron Wehrens and Bjørn-Helge Mevik
mvr,predplot.mvr,
validationplot, coefplot,
scoreplot, loadingplot,
biplot.mvr
data(NIR) nir.pcr <- pcr(y ~ X, ncomp = 9, data = NIR, CV = TRUE) ## Not run: plot(nir.pcr, ncomp = 5) # Plot of cross-validated predictions ## Not run: plot(nir.pcr, "scores") # Score plot ## Not run: plot(nir.pcr, "loadings", comps = 1:3) # The three first loadings ## Not run: plot(nir.pcr, "coef", ncomp = 5) # Coefficients ## Not run: plot(nir.pcr, "val") # RMSEP curves ## Not run: plot(nir.pcr, "val", val.type = "MSEP", estimate = "CV") # CV MSEP