nPLS1ActivatePlots
Location: ..\cubatch\Model_nPLS1\nPLS1ActivatePlots.m

function nPLS1ActivatePlots (PlotMenuHan,ApplyMen,ModeNames,VariableNames,Factors,Flag);
Description:
It activates the 'Results' sub menus relative to an nPLS or PLS model after it is computed, loaded or applied to a new set of data via nPLS1Apply. Some plots are available only for specific type of validation or whether the model is fit to a new set of data instead of being just computed. In particular the 'online' plots (Q statistics, D statistics, SPE) are activated only when the last mode is given name 'time' (case insensitive).
Specifically, the first level of submenus is relative to the predicted variables.
The menus callback is npls1plot.
Inputs:
PlotMenuHan: 'Results' menu handle
ApplyMen: 'Use model' menu handle
ModeNames: cell vector holding the modes' names for the X data used to compute the model
VariableNames: cell vector with the predicted variables
Factors: vector of the number of LVs (for all the computed models, if more than one)
Flag: 0/1 depending on whether the results refer to a model that has been just computed (0) or to a model that has been applied to a new set of data (1).

Outputs:
None

Called by:
ActivatePlots
Subroutines:
Internal: None
External: guinames, plot_d_statistic, plot_explained_variance, plot_landscape, plot_partial_rss, plot_partial_rss_online, plot_pred_meas, plot_predictions, plot_quality, plot_press, plot_rmse, plot_tu_loadings, plot_xy_loadings, setcvdata

Author:
Giorgio Tomasi
Royal Agricultural and Veterinary University
MLI, LMT, Chemometrics group
Rolighedsvej 30
DK-1958 Frederiksberg C
Danmark
Last modified: 16-Oct-2002 18:42:22
Contact: Giorgio Tomasi, gt@kvl.dk
References