sppDist(spider)
sppDist()所属R语言包:spider
Intra and inter-specific distances
内和种间的距离
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Separates a distance matrix into its inter- and intra-specific components.
分隔的距离矩阵间和种内的组件。
用法----------Usage----------
sppDist(distobj, sppVector)
参数----------Arguments----------
参数:distobj
A distance matrix.
距离矩阵。
参数:sppVector
The species vector (see sppVector).
种矢量(见sppVector“)。
Details
详细信息----------Details----------
This function can be used to produce histograms and other charts exploring the "barcode gap", such as in the examples below.
直方图和其他图表探索“条形码差距,如在下面的例子中,可以使用此功能。
值----------Value----------
A list with two elements:
有两个元素的列表:
参数:inter
A numeric vector containing ALL inter-specific pairwise distances.
一个数字向量间的所有特定的成对距离。
参数:intra
A numeric vector containing ALL intra-specific pairwise distances.
一个数值向量,包含所有内特定的成对距离。
(作者)----------Author(s)----------
Samuel Brown <s_d_j_brown@hotmail.com>
参见----------See Also----------
sppDistMatrix.
sppDistMatrix。
实例----------Examples----------
data(dolomedes)
doloDist <- dist.dna(dolomedes)
doloSpp <- substr(dimnames(dolomedes)[[1]], 1, 5)
doloSpDist <- sppDist(doloDist, doloSpp)
doloSpDist
#Histogram of the barcode gap[直方图的条码差距]
transGreen <- rgb(0, 1, 0, 0.5) #Make a slightly transparent colour to see some overlap[做一个稍微透明的颜色,看到一些重叠]
hist(doloSpDist$inter, col="grey")
hist(doloSpDist$intra, col=transGreen, add=TRUE)
#Boxplot of the same[箱线图相同]
boxplot(doloSpDist)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|