regionsf 发表于 2009-3-28 21:17

有没有大侠用过matlab的biplot?

偶的水平很菜,看了老半天没看懂:'(
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 = ; %这个算是什么数据还是说明?
       X = X(all(~isnan(X),2),:);
       = princomp(zscore(X));
       vlabs = {'Accel','Disp','HP','MPG','Wgt'};
       biplot(coefs(:,1:3), 'scores',score(:,1:3), 'varlabels',vlabs);
问题: 这个函数只能用于三维或二维的数据么,可以画带箭头的数据么,谢谢了,最好能具体说一下这个函数

ChaChing 发表于 2009-3-29 13:48

回复 楼主 regionsf 的帖子

每个人专业有限, 总得楼主先自己先试试看, 具体些再讨论!
还有建议楼主先看下本版规则并加强发问题方式!
页: [1]
查看完整版本: 有没有大侠用过matlab的biplot?