通过指定支持的行属性名称和值,以及使用句柄来控制双皮子的外观万博1manbetx双翼飞机
。
加载sample data.
创建一个由变量组成的矩阵加速度
,,,,Displacement
,,,,andMPG
。删除矩阵中缺少值的行。
标准化X
and perform a principal component analysis.
这3-by-3 matrixcoefs
包含主组件系数(每个主组件的一列)。矩阵分数
包含主成分得分(观测值)。
在前两个主要组件的空间中创建一个观测值的双眼。使用Biplot的默认属性。
H
是图形对象的手柄向量。您可以修改由返回的行对象的属性双翼飞机
。
标记三个变量以易于识别。将圆指定为标记符号,将蓝色作为所有线对象的线颜色。
H1
是图形对象的手柄向量。View the first few elements ofH1
。
ans = 10x1图形数组:线(varline)行(varline)行(varline)行(varmarker)行(varmarker)行(varmarker)line(varmarker)text(varlabel)text(varlabel)text(varlabel)text(varlabel)line(obsmarker)line(obsmarker)
这Handles for the variable labels (H1(7:9)
)是文字。因此,针对线路属性指定的设置不会影响这些标签。
Create another biplot of the observations in the space of the first two principal components, and label the three variables for easy identification.
H2
是图形对象的手柄向量。View the first few elements ofH2
。
ans = 10x1图形数组:线(varline)行(varline)行(varline)行(varmarker)行(varmarker)行(varmarker)line(varmarker)text(varlabel)text(varlabel)text(varlabel)text(varlabel)line(obsmarker)line(obsmarker)
H2
包含104个对象手柄。
前三个把手(h(1:3)
)correspond to line handles for the three variables.
手柄h(4:6)
correspond to marker handles for the three variables.
手柄H(7:9)
correspond to text handles for the three variables.
接下来的94个手柄对应于观测值的线手柄。
最后一个手柄对应于轴线的线手柄。
通过将手柄用于图形对象来修改双翼点的特定属性。
Change the line color of the variables (vectors).
Modify the font of the variable labels.
Change the color of the observation markers.