andrewsplot
statistics: andrewsplot (x)
statistics: andrewsplot (x, name, value, …)
statistics: andrewsplot (ax, …)
statistics: h = andrewsplot (…)
Create an Andrews plot of the multivariate data in x.
andrewsplot (x) plots each observation (row) of the
n-by-p matrix x as a smooth curve defined by the finite
Fourier series
f_i(t) = x_i1/sqrt(2) + x_i2 sin(2*pi*t) + x_i3 cos(2*pi*t)
+ x_i4 sin(4*pi*t) + x_i5 cos(4*pi*t) + …
|
evaluated over in the interval , where x_ij is the -th variable of the -th observation.
The following name/value pairs are accepted:
"Group""Standardize""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" andrewsplot (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: parallelcoords, glyphplot, pca
Source Code: andrewsplot
Andrews plot of Fisher's iris data, grouped by species.
load fisheriris; andrewsplot (meas, "Group", species);
The same data with median and quartile curves per species.
load fisheriris; andrewsplot (meas, "Group", species, "Quantile", 0.25);