IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
draw_loadings_pl.m File Reference

Detailed Description

Draws loadings curves with many options.

Definition in file draw_loadings_pl.m.

Go to the source code of this file.

Functions

function draw_loadings_pl (in x, in L, in x_hint, in hint, in legends, in flag_abs, in peakd, in colorindexes)
 

Function Documentation

function draw_loadings_pl ( in  x,
in  L,
in  x_hint,
in  hint,
in  legends,
in  flag_abs,
in  peakd,
in  colorindexes 
)
Parameters
x[nf] x-axis values.
L[nf][number_of_loadings] loadings matrix.
x_hint=[]. [nf] x-axis values. If not passed or empty, uses x if hint is passed.
hint[nf] "hint" curve that helps the reading of the loadings. If not passed or empty, no hint curve is drawn.
legends=[] One legend per loadings curve. If not passed, no legend is drawn.
flag_abs=0 Whether to take the absolute value of the loadings matrix.
peakd=[] Peak Detector object.
flag_trace_minalt=0 Whether to draw the threshold line. Only works if threshold is passed.
flag_draw_peaks=0 Whether to mark the detected peaks in the figure.
flag_print_peaks=0 Whether to print detected peaks on the command line window.
flag_histogram=0 Whether to plot line or histogram.
flag_envelope=0 If true, will detect all peaks, do spline interpolation and plot this instead
flag_bmtable=0 Alternative view. If true, a completely different thing will be done: a bmtable will be created. Note that the peakdetector must be provided
colorindexes=[] If passed, will use indexes to find colors and markers. Otherwise, will assume [1, 2, 3, ...]