Biplot.PLSR | R Documentation |
Adds a Biplot to a Partial Lest Squares (plsr) object.
Biplot.PLSR(plsr)
plsr |
A plsr object from the PLSR function |
Adds a Biplot to a Partial Lest Squares (plsr) object. The biplot is constructed with the matrix of predictors, the dependent variable is projected onto the biplot as a continuous supplementary variable.
An object of class ContinuousBiplot with the dependent variables as supplemntary.
Jose Luis Vicente Villardon
Oyedele, O. F., & Lubbe, S. (2015). The construction of a partial least-squares biplot. Journal of Applied Statistics, 42(11), 2449-2460.
PLSR
X=as.matrix(wine[,4:21])
y=as.numeric(wine[,2])-1
mifit=PLSR(y,X, Validation="None")
mibip=Biplot.PLSR(mifit)
plot(mibip, PlotVars=TRUE, IndLabels = y, ColorInd=y+1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.