rosenberg(spider)
rosenberg()所属R语言包:spider
Rosenberg's probability of reciprocal monophyly
Rosenberg的概率互惠单系
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function computes Rosenberg's probability of reciprocal monophyly for each dichotomous node of a phylogenetic tree.
此函数计算Rosenberg的概率互惠单系在每项两节点的系统发育树。
用法----------Usage----------
rosenberg(phy)
参数----------Arguments----------
参数:phy
A tree of class "phylo".
一棵树类的phylo。
Details
详细信息----------Details----------
Because ape plots node labels in a different manner to the method in which they are stored, when plotting the node labels made by rosenberg, make sure the node argument is given as shown in the examples below.
因为ape图节点时绘制节点由rosenberg的标签,标签的方法在它们存储在以不同的方式,确保node参数所示的下面的例子。
值----------Value----------
A numeric vector with names giving the node numbers of phy.
一个数字矢量的名字给节点的phy。
(作者)----------Author(s)----------
Samuel Brown <s_d_j_brown@hotmail.com>
参考文献----------References----------
参见----------See Also----------
nodelabels.
nodelabels。
实例----------Examples----------
data(anoteropsis)
anoTr <- nj(dist.dna(anoteropsis))
anoLab <- rosenberg(anoTr)
plot(anoTr)
nodelabels(round(anoLab,3), node=as.numeric(names(anoLab)))
data(dolomedes)
doloTr <- nj(dist.dna(dolomedes))
doloRose <- rosenberg(doloTr)
plot(doloTr)
nodelabels(round(doloRose, 3))
#Colour circles for nodes with a probability < 0.005[色界节点的概率<0.005]
doloNodes <- doloRose < 0.005
doloLabs <- doloRose
doloLabs[doloNodes] <- "blue"
doloLabs[!doloNodes] <- "red"
plot(doloTr, cex=0.7)
nodelabels(pch=21, bg=doloLabs, node=as.numeric(names(doloLabs)), cex=2)
legend(x=0.015, y=16.13, legend=c("significant", "not significant"), pch=21,
pt.bg=c("blue", "red"), bty="n", pt.cex=2)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|