powered by
Plots the scores of the observations of a PLS regression.
plo_obs(object, comps = 1:2, col = "black", size = 1.5)
a ggplot2 object
ggplot2
an object of class mvr from pls package
mvr
pls
the components to use. Default is c(1,2).
c(1,2)
the color of the points.
numerical value. The size of the points.
Nicolas Robette
Martens, H., Næs, T. (1989) Multivariate calibration. Chichester: Wiley.
Tenenhaus, M. (1998) La Regression PLS. Theorie et Pratique. Editions TECHNIP, Paris.
library(pls) data(yarn) pls <- mvr(density ~ NIR, ncomp = 5, data = yarn, validation = "CV", method = "oscorespls") plo_obs(pls)
Run the code above in your browser using DataLab