|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
偶的水平很菜,看了老半天没看懂:'(
BIPLOT Biplot of variable/factor coefficients and scores.
BIPLOT(COEFS) creates a biplot of the coefficients in the matrix
COEFS. The biplot is 2D if COEFS has two columns, or 3D if it has
three columns. COEFS usually contains principal component coefficients
created with PRINCOMP or PCACOV, or factor loadings estimated with
FACTORAN. The axes in the biplot represent the principal components or
latent factors (columns of COEFS), and the observed variables (rows of
COEFS) are represented as vectors.
BIPLOT(COEFS, ..., 'Scores', SCORES) plots both COEFS and the scores in
the matrix SCORES in the biplot. SCORES usually contains principal
component scores created with PRINCOMP or factor scores estimated with
FACTORAN. Each observation (row of SCORES) is represented as a point
in the biplot.
A biplot allows you to visualize the magnitude and sign of each
variable's contribution to the first two or three principal components,
and how each observation is represented in terms of those components.
BIPLOT imposes a sign convention, forcing the element with largest
magnitude in each column of COEFS is positive.
BIPLOT(COEFS, ..., 'VarLabels',VARLABS) labels each vector (variable)
with the text in the character array or cell array VARLABS.
BIPLOT(COEFS, ..., 'Scores', SCORES, 'ObsLabels', OBSLABS) uses the
text in the character array or cell array OBSLABS as observation names
when displaying data cursors.
BIPLOT(COEFFS, ..., 'PropertyName',PropertyValue, ...) sets properties
to the specified property values for all line graphics objects created
by BIPLOT.
H = BIPLOT(COEFS, ...) returns a column vector of handles to the
graphics objects created by BIPLOT. H contains, in order, handles
corresponding to variables (line handles, followed by marker handles,
followed by text handles), to observations (if present, marker
handles), and to the axis lines.
Example:
load carsmall
X = [Acceleration Displacement Horsepower MPG Weight]; %这个算是什么数据还是说明?
X = X(all(~isnan(X),2),:);
[coefs,score] = princomp(zscore(X));
vlabs = {'Accel','Disp','HP','MPG','Wgt'};
biplot(coefs(:,1:3), 'scores',score(:,1:3), 'varlabels',vlabs);
问题: 这个函数只能用于三维或二维的数据么,可以画带箭头的数据么,谢谢了,最好能具体说一下这个函数 |
|