View source: R/loadingsplot2D.R
loadingsplot2D | R Documentation |
Functions to extract 2D graphical loadings information from mvdalab objects.
loadingsplot2D(object, comps = c(1, 2), verbose = FALSE)
object |
an |
comps |
a vector or length 2 corresponding to the number of components to include. |
verbose |
output results as a data frame |
loadingsplot2D
is used to extract a graphical summary of the loadings of a PLS model.
If comp
is missing (or is NULL), a graphical summary for the 1st and 2nd componentsare returned.
Nelson Lee Afanador (nelson.afanador@mvdalab.com)
coefficientsplot2D
, weightsplot2D
data(Penta) mod1 <- plsFit(log.RAI ~., scale = TRUE, data = Penta[, -1], ncomp = 2, validation = "loo") loadingsplot2D(mod1, comp = c(1, 2)) ## Not run: data(Penta) mod2 <- plsFit(log.RAI ~., scale = TRUE, data = Penta[, -1], ncomp = 2, validation = "loo") loadingsplot2D(mod2, comp = c(1, 2)) ## End(Not run) data(iris) pc1 <- pcaFit(iris) loadingsplot2D(pc1, comp = c(1, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.