CSM Plot OPLS


Generate the OrthPLS Summary Plot

Utilises the mjrO2plsSummaryPlot function written by Mattias Rantalainen.

If loadings plots are generated (with plot_type = 'loadings' or 'all'),

Statistics about the association between X and Y are calculated and

returned in figure.output.association_XY.

Usage

figure = csm_plot_orth_pls( csm_orth_pls_model );

figure = csm_plot_orth_pls( csm_orth_pls_model, 'plot_type', plot_type, );

Arguments (* = required)

VariableTypeDefault ValueDescription
*csm_orth_pls_modelcsm_orth_plsNoneOrthPLS model created by csm_orth_pls.
plot_typestr'all''all','scores','loadings', 'stats','perm'
sample_idscellsample_ids from csm_orth_pls spectra inputSample Labels for plotting
namestrdateName to annotate the figure with
save_dirstrnoneSave directory

Returns

VariableTypeDescription
figureobjcsm_figure_handle with some stored inputs, the handle and metadata.
figure.output.association_XY.corm*nCorrelation matrix of X and Y.
figure.output.association_XY.covm*nCovariance matrix of X and Y.
figure.output.association_XY.cor_p_value1*1P Value of the correlation between X and Y.

Copyright Imperial College London 2019