Categories &

Functions List

Function Reference: parallelcoords

statistics: parallelcoords (x)
statistics: parallelcoords (x, name, value, …)
statistics: parallelcoords (ax, …)
statistics: h = parallelcoords (…)

Create a parallel coordinates plot of the multivariate data in x.

parallelcoords (x) plots each observation (row) of the n-by-p matrix x as a line connecting the values of its p coordinates, which are placed at the equally spaced horizontal positions 1, 2, …, p.

The following name/value pairs are accepted:

"Group"
A grouping variable (numeric, logical, character, string, or cell array of strings) with one entry per row of x. Lines are colored by group.
"Standardize"
Controls how the columns of x are transformed before plotting: "off" (default) uses the raw data, "on" centers and scales each column to zero mean and unit standard deviation, "PCA" uses the principal component scores, and "PCAStd" uses the principal component scores of the standardized data.
"Quantile"
A scalar alpha in the interval (0,1). Instead of one line per observation, only three lines per group are drawn: the coordinate-wise median and the alpha and 1-alpha quantiles of the group.
"Labels"
A character array or cell array of strings giving the tick labels for the coordinate axis.

parallelcoords (ax, …) plots into the axes ax.

The optional output h is a vector of handles to the plotted lines: one per observation, or three per group when "Quantile" is used.

See also: andrewsplot, glyphplot, pca

Source Code: parallelcoords

Parallel coordinates plot of Fisher's iris data, grouped by species.

 load fisheriris;
 parallelcoords (meas, "Group", species, "Labels", ...
                 {"SL", "SW", "PL", "PW"});
plotted figure

The same data with median and quartile lines per species.

 load fisheriris;
 parallelcoords (meas, "Group", species, "Quantile", 0.25, ...
                 "Standardize", "on");
plotted figure