andrewsplot
Andrews plot
Syntax
andrewsplot(X)
andrewsplot(X,...,'Standardize',standopt
)
andrewsplot(X,...,'Quantile',alpha)
andrewsplot(X,...,'Group',group)
andrewsplot(X,...,'PropName'
,PropVal
,...)
h = andrewsplot(X,...)
Description
andrewsplot(X)
创建一个安德鲁斯th的阴谋e multivariate data in the matrixX
. The rows ofX
correspond to observations, the columns to variables. Andrews plots represent each observation by a functionf(t) of a continuous dummy variabletover the interval [0,1].f(t) is defined for theith observation inX
as
andrewsplot
treatsNaN
values inX
as missing values and ignores the corresponding rows.
andrewsplot(X,...,'Standardize',
creates an Andrews plot wherestandopt
)standopt
is one of the following:
'on'
— scales each column ofX
to have mean0
and standard deviation1
before making the plot.'PCA'
— creates an Andrews plot from the principal component scores ofX
, in order of decreasing eigenvalue. (Seepca
.)'PCAStd'
— creates an Andrews plot using the standardized principal component scores. (Seepca
.)
andrewsplot(X,...,'Quantile',alpha)
plots only the median and thealpha
and (1 –alpha
) quantiles off(t) at each value oft. This is useful ifX
contains many observations.
andrewsplot(X,...,'Group',group)
plots the data in different groups with different colors. Groups are defined bygroup
, a numeric array containing a group index for each observation.group
can also be a categorical array, character matrix, or cell array of character vectors containing a group name for each observation.
andrewsplot(X,...,
sets optional lineseries object properties to the specified values for all lineseries objects created by'PropName'
,PropVal
,...)andrewsplot
. (SeeChart Line Properties.)
h = andrewsplot(X,...)
returns a column vector of handles to the lineseries objects created byandrewsplot
, one handle per row ofX
. If you use the'Quantile'
input parameter,h
contains one handle for each of the three lineseries objects created. If you use both the'Quantile'
and the'Group'
input parameters,h
contains three handles for each group.