rect.hclust(stats)
rect.hclust()所属R语言包:stats
Draw Rectangles Around Hierarchical Clusters
周围绘制分层集群的矩形
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Draws rectangles around the branches of a dendrogram highlighting the corresponding clusters. First the dendrogram is cut at a certain level, then a rectangle is drawn around selected branches.
突出显示相应的集群树状分支周围绘制矩形。首先聚类,在一定程度削减,然后绘制一个矩形,围绕选定的分支。
用法----------Usage----------
rect.hclust(tree, k = NULL, which = NULL, x = NULL, h = NULL,
border = 2, cluster = NULL)
参数----------Arguments----------
参数:tree
an object of the type produced by hclust.
由hclust类型的对象。
参数:k, h
Scalar. Cut the dendrogram such that either exactly k clusters are produced or by cutting at height h.
标。切,要么完全k集群或高空切h产生的聚类分析等。
参数:which, x
A vector selecting the clusters around which a rectangle should be drawn. which selects clusters by number (from left to right in the tree), x selects clusters containing the respective horizontal coordinates. Default is which = 1:k.
选择一个向量周围应绘制一个矩形的集群。 which选择数字集群(从左至右在右边的树),x选择集群包含了各自的水平坐标。默认which = 1:k。
参数:border
Vector with border colors for the rectangles.
矢量的矩形边框的颜色。
参数:cluster
Optional vector with cluster memberships as returned by cutree(hclust.obj, k = k), can be specified for efficiency if already computed.
集群成员的任择向量作为返回cutree(hclust.obj, k = k),可以指定如果已经计算效率。
值----------Value----------
(Invisibly) returns a list where each element contains a vector of
(不可见)返回一个列表,其中每个元素包含一个矢量
参见----------See Also----------
hclust, identify.hclust.
hclust,identify.hclust。
举例----------Examples----------
require(graphics)
hca <- hclust(dist(USArrests))
plot(hca)
rect.hclust(hca, k=3, border="red")
x <- rect.hclust(hca, h=50, which=c(2,7), border=3:4)
x
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|