声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 2855|回复: 1

[绘图技巧] 有没有大侠用过matlab的biplot?

[复制链接]
发表于 2009-3-28 21:17 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

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);
问题: 这个函数只能用于三维或二维的数据么,可以画带箭头的数据么,谢谢了,最好能具体说一下这个函数
回复
分享到:

使用道具 举报

发表于 2009-3-29 13:48 | 显示全部楼层

回复 楼主 regionsf 的帖子

每个人专业有限, 总得楼主先自己先试试看, 具体些再讨论!
还有建议楼主先看下本版规则并加强发问题方式!
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-11-6 09:46 , Processed in 0.056257 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表