caliplots.m

% ------------------------------------------------------------------------
% Function: caliplots(plottype,varargin)
% ------------------------------------------------------------------------
% Aim:
% caliplots - constructing plots obtained via calibration methods
% ------------------------------------------------------------------------
% Input:
% plottype, string, defining type of plot. The following choices can be
% made:
% 1/ 'y-yp' - y observed vs. y predicted
% Example: 
% caliplots('y-yp',Ym,Ymp) - only for model set
% caliplots('y-yp',Ym,Ymp,Yt,Ytp) - for model and test sets
% 2/ 'colormap residuals' - color map of the absolute values of residuals 
% of the calibration models with different number of factors
% Example:
% caliplots('colormap residuals',E)
% E - matrix of residuals (in columns residuals from models with  
% increasing number of factors)
% 3/ 'residuals' - plot of the absolute values of residuals of the model 
% of certain complexity
% Example:
% caliplots('residuals',e), where e is a vector of residuals
% 4/ 'regression coefficients' - plot of regression coefficients of the
% calibration model
% caliplots('regression coefficients',b), wghere b is vector of regression
% coefficients
% 5/ 'PRM weights' - x-weights vs. y-weights of the PRM model
% Example:
% caliplots('PRM weights',wt,wy), where wt and wy are vectors of weights
% for objects obtained with PRM for x-space and y-space, respectively
% 6/ 'PRM x-weights' - plot of x-weights of the PRM model
% Example:
% caliplots('PRM weights',wt), where wt is vector of x-weights
% for objects obtained with PRM
% 7/ 'PRM y-weights' - plot of y-weights of the PRM model
% 8/ 'activation'
% Example:
% caliplots('activation',activation)
Valid CSS! Valid HTML 4.01!