Shows plot with X scores values for selected components.
# S3 method for pls
plotXScores(
obj,
comp = if (obj$ncomp > 1) c(1, 2) else 1,
show.axes = TRUE,
main = "Scores (X)",
res = obj$res,
...
)
a PLS model (object of class pls
)
which components to show the plot for (one or vector with several values)
logical, show or not a axes lines crossing origin (0,0)
main plot title
list with result objects to show the plot for (by defaul, model results are used)
other plot parameters (see mdaplotg
for details)
See examples in help for pls
function.