loadingsplot2D: 2-Dimensionsl Graphical Summary Information Pertaining to the...

Description Usage Arguments Details Author(s) See Also Examples

View source: R/loadingsplot2D.R

Description

Functions to extract 2D graphical loadings information from mvdalab objects.

Usage

1
loadingsplot2D(object, comps = c(1, 2), verbose = FALSE)

Arguments

object

an mvdareg or mvdapca object.

comps

a vector or length 2 corresponding to the number of components to include.

verbose

output results as a data frame

Details

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.

Author(s)

Nelson Lee Afanador (nelson.afanador@mvdalab.com)

See Also

coefficientsplot2D, weightsplot2D

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
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)
## Number of bootstraps set to 300 to demonstrate flexibility
## Use a minimum of 1000 (default) for results that support bootstraping
mod2 <- plsFit(log.RAI ~., scale = TRUE, data = Penta[, -1],
               ncomp = 2, validation = "oob", boots = 300)
loadingsplot2D(mod2, comp = c(1, 2))

## End(Not run)

data(iris)
pc1 <- pcaFit(iris)
loadingsplot2D(pc1, comp = c(1, 2))

mvdalab documentation built on May 20, 2017, 12:42 a.m.

Search within the mvdalab package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.