reorder.dendrogram(stats)
reorder.dendrogram()所属R语言包:stats
Reorder a Dendrogram
重新排序发生树
译者:生物统计家园网 机器人LoveR
描述----------Description----------
A method for the generic function reorder.
泛型函数reorder方法。
There are many different orderings of a dendrogram that are consistent with the structure imposed. This function takes a dendrogram and a vector of values and reorders the dendrogram in the order of the supplied vector, maintaining the constraints on the dendrogram.
有许多不同的排序的树状结构施加一致。此函数采用聚类分析和矢量值和重新排序的树状图中所提供的向量的顺序,维持树状制约。
用法----------Usage----------
## S3 method for class 'dendrogram'
reorder(x, wts, agglo.FUN = sum, ...)
参数----------Arguments----------
参数:x
the (dendrogram) object to be reordered
(聚类)对象重新排序
参数:wts
numeric weights (arbitrary values) for reordering.
数字重量(任意值)重新排序。
参数:agglo.FUN
a function for weights agglomeration, see below.
为权重的集聚功能,见下文。
参数:...
additional arguments
额外的参数
Details
详情----------Details----------
Using the weights wts, the leaves of the dendrogram are reordered so as to be in an order as consistent as possible with the weights. At each node, the branches are ordered in increasing weights where the weight of a branch is defined as f(w_j) where f is agglo.FUN and w_j is the weight of the j-th sub branch).
使用权wts,树状的叶子被重新排序,以便在订单的重量尽可能一致。在每个节点上,被定义为其中的一个分支的重量增加重量分行下令f(w_j)其中f是agglo.FUN和w_j是<重量X>个支行)。
值----------Value----------
A dendrogram where each node has a further attribute value with its corresponding weight.
一个树状图,其中每个节点都有进一步的属性value其相应的权重。
作者(S)----------Author(s)----------
R. Gentleman and M. Maechler
参见----------See Also----------
reorder.
reorder。
rev.dendrogram which simply reverses the nodes' order; heatmap, cophenetic.
rev.dendrogram节点根本扭转,“heatmap,cophenetic。
举例----------Examples----------
require(graphics)
set.seed(123)
x <- rnorm(10)
hc <- hclust(dist(x))
dd <- as.dendrogram(hc)
dd.reorder <- reorder(dd, 10:1)
plot(dd, main = "random dendrogram 'dd'")
op <- par(mfcol = 1:2)
plot(dd.reorder, main = "reorder(dd, 10:1)")
plot(reorder(dd,10:1, agglo.FUN= mean),
main = "reorder(dd, 10:1, mean)")
par(op)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|