plclust_in_colour(spclust)
plclust_in_colour()所属R语言包:spclust
Hierarchical clustering *in colour*
分层聚类*色*
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Modification of plclust for plotting hclust objects in colour
的plclust用于绘制hclust物体的颜色修改
用法----------Usage----------
plclust_in_colour(hclust, lab = hclust$labels,
lab.col = rep(1, length(hclust$labels)), hang = 0.1,
...)
参数----------Arguments----------
参数:hclust
hclust object
hclust对象
参数:lab
Character vector of labels of leaves of the tree
字符矢量树叶的标签
参数:lab.col
Colour for the labels; NA gives the defaul device foreground colour
颜色的标签,NA给出了默认情况下将设备前景色
参数:hang
Fraction of the plot height by which labels hang belore the rest of the plot, as in plclust
分数的图高度,其中的标签挂belore其余的图,在plclust
参数:...
Additional arguments passed through to plclust
其他参数传递到plclust
值----------Value----------
Display of dendrogram with coloured leaf labels
色叶标签的聚类分析显示,
(作者)----------Author(s)----------
originally written by Eva KF Chan, modification by Emma
Huang
参见----------See Also----------
plot.spclust
plot.spclust
实例----------Examples----------
map <- sim.map(len=rep(100, 5), n.mar=21, eq.spacing=TRUE, include.x=FALSE)
dat <- sim.cross(map, n.ind=500, type="f2")
distmat <- spdist(dat, type="f2")
hc <- hclust(distmat, method="average")
lab <- rep("", 500)
lab[seq(1, 500, 50)] <- "RED"
lab[seq(10, 500, 50)] <- "BLACK"
lab.col <- rep("red", 500)
lab.col[seq(1,500, 50)] <- "blue"
plclust_in_colour(hc, lab, lab.col)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|