Functions to extract 2D graphical loadings information from mvdalab objects.
a vector or length 2 corresponding to the number of components to include.
loadingsplot2D is used to extract a graphical summary of the loadings of a PLS model.
comp is missing (or is NULL), a graphical summary for the 1st and 2nd componentsare returned.
Nelson Lee Afanador (firstname.lastname@example.org)
1 2 3 4 5 6 7 8 9 10
data(Penta) ## Number of bootstraps set to 500 to demonstrate flexibility ## Use a minimum of 1000 (default) for results that support bootstraping mod1 <- plsFit(log.RAI ~., scale = TRUE, data = Penta[, -1], ncomp = 2, validation = "oob", boots = 500) loadingsplot2D(mod1, comp = c(1, 2)) data(iris) pc1 <- pcaFit(iris) loadingsplot2D(pc1, comp = c(1, 2))