Plotscores: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Jeremy
(Importing text file)
imported>Jeremy
(Importing text file)
Line 1: Line 1:
===Purpose===
===Purpose===
Extract and display scores information from model.
Extract and display scores information from model.
===Synopsis===
===Synopsis===
:a = scoresplot(modl,''options'')
:a = scoresplot(modl,''options'')
:a = scoresplot(modl,pred,''options'')
:a = scoresplot(modl,pred,''options'')
:a = plotscores(scores,''labels,classes'')
:a = plotscores(scores,''labels,classes'')
:options = plotscores('options')
:options = plotscores('options')
===Description===
===Description===
Given a standard model structure, relevant scores information (e.g. labels) is collected and passed to PLOTGUI for plotting. The input is the model containing scores to plot modl. (e.g. see MODELSTRUCT). A second input pred contains a test or validation structrure (see PCA) that can be plotted with scores in modl. Optional input ''options'' is discussed below.
Given a standard model structure, relevant scores information (e.g. labels) is collected and passed to PLOTGUI for plotting. The input is the model containing scores to plot modl. (e.g. see MODELSTRUCT). A second input pred contains a test or validation structrure (see PCA) that can be plotted with scores in modl. Optional input ''options'' is discussed below.
Input scores is a ''M'' by ''K'' scores matrix (class "double"). Optional input ''labels'' is a character or cell array with ''M'' rows containing sample labels, and optional input ''classes'' is a vector with ''M'' integer elements of class identifiers.
Input scores is a ''M'' by ''K'' scores matrix (class "double"). Optional input ''labels'' is a character or cell array with ''M'' rows containing sample labels, and optional input ''classes'' is a vector with ''M'' integer elements of class identifiers.
If no output is requested then PLOTSCORES initiates an interactive plotting utility to make scores plots. If an output is requested, no plots are made, and the output a is a dataset object containing the scores and labels, etc.
If no output is requested then PLOTSCORES initiates an interactive plotting utility to make scores plots. If an output is requested, no plots are made, and the output a is a dataset object containing the scores and labels, etc.
===Options===
===Options===
* '''''options''''' =  a structure array with the following fields:
* '''''options''''' =  a structure array with the following fields:
* '''display''': [ {'on'} | 'off' ], governs level of display,
* '''display''': [ {'on'} | 'off' ], governs level of display,
* '''plots''': ['none' | 'final' | {'auto'} |], governs plotting behavior, 'auto' makes plots if no output is requested {default},
* '''plots''': ['none' | 'final' | {'auto'} |], governs plotting behavior, 'auto' makes plots if no output is requested {default},
* '''figure''': [],governs where plots are made, when figure = [] plots are made in a new figure window {default}, this can also be a valid figure number (i.e. figure handle), and
* '''figure''': [],governs where plots are made, when figure = [] plots are made in a new figure window {default}, this can also be a valid figure number (i.e. figure handle), and
* '''sct''': [ 0 | {1} ], tells whether to plot cal (modl scores) with test (pred scores), sct = 1 plots original calibration data with prediction set {default}.
* '''sct''': [ 0 | {1} ], tells whether to plot cal (modl scores) with test (pred scores), sct = 1 plots original calibration data with prediction set {default}.
The default options can be retreived using: options = plotscores('options');.
The default options can be retreived using: options = plotscores('options');.
===See Also===
===See Also===
[[analysis]], [[modelstruct]], [[pca]], [[pcr]], [[plotgui]], [[plotloads]], [[pls]]
[[analysis]], [[modelstruct]], [[pca]], [[pcr]], [[plotgui]], [[plotloads]], [[pls]]

Revision as of 15:26, 3 September 2008

Purpose

Extract and display scores information from model.

Synopsis

a = scoresplot(modl,options)
a = scoresplot(modl,pred,options)
a = plotscores(scores,labels,classes)
options = plotscores('options')

Description

Given a standard model structure, relevant scores information (e.g. labels) is collected and passed to PLOTGUI for plotting. The input is the model containing scores to plot modl. (e.g. see MODELSTRUCT). A second input pred contains a test or validation structrure (see PCA) that can be plotted with scores in modl. Optional input options is discussed below.

Input scores is a M by K scores matrix (class "double"). Optional input labels is a character or cell array with M rows containing sample labels, and optional input classes is a vector with M integer elements of class identifiers.

If no output is requested then PLOTSCORES initiates an interactive plotting utility to make scores plots. If an output is requested, no plots are made, and the output a is a dataset object containing the scores and labels, etc.

Options

  • options = a structure array with the following fields:
  • display: [ {'on'} | 'off' ], governs level of display,
  • plots: ['none' | 'final' | {'auto'} |], governs plotting behavior, 'auto' makes plots if no output is requested {default},
  • figure: [],governs where plots are made, when figure = [] plots are made in a new figure window {default}, this can also be a valid figure number (i.e. figure handle), and
  • sct: [ 0 | {1} ], tells whether to plot cal (modl scores) with test (pred scores), sct = 1 plots original calibration data with prediction set {default}.

The default options can be retreived using: options = plotscores('options');.

See Also

analysis, modelstruct, pca, pcr, plotgui, plotloads, pls