biplot.plsr: Biplot for plsr Objects

Description Usage Arguments Examples

View source: R/pls_func.R

Description

Produces a biplot from a plsr object

Usage

1
2
## S3 method for class 'plsr'
biplot(x, side = "X", LVs = c(1, 2), ...)

Arguments

x

The plsr object

side

The side for which the biplot should be generated. Can be "X" (default) to generate a biplot of the loadings of X onto the latent space or "Y" for the loadings of Y.

LVs

Vector of length two which specifies the latent variables to be plotted against each other. For example, the default LVs=c(1,2) will plot latent variable 1 against latent variable 2.

...

optional arguments to be passed to biplot.default.

Examples

1
2
3
4
plsr_obj = pls(rating_data,tracking_data,10,10)
biplot(plsr_obj)

biplot(plsr_obj, LV=c(2,3), side="Y")

plsr documentation built on May 1, 2019, 11:28 p.m.