Learn R Programming

mdatools (version 0.7.0)

plotPredictions.pls: Predictions plot for PLS

Description

Shows plot with predicted vs. reference (measured) y values for selected components.

Usage

"plotPredictions"(obj, ncomp = NULL, ny = 1, main = NULL, xlab = NULL, ylab = NULL, legend.position = "topleft", show.line = T, show.labels = F, show.legend = T, colmap = "default", col = NULL, ...)

Arguments

obj
a PLS model (object of class pls)
ncomp
how many components to use (if NULL - user selected optimal value will be used)
ny
number of response variable to make the plot for (if y is multivariate)
main
main plot title
xlab
label for x axis
ylab
label for y axis
legend.position
position of legend on the plot (if shown)
show.line
logical, show or not line fit for the plot points
show.labels
logical, show or not labels for the plot elements
show.legend
logical, show or not legend for the plot
colmap
a colormap to use for coloring the plot items
col
a vector with color values for plot items
...
other plot parameters (see mdaplotg for details)

Details

See examples in help for pls function.