abc2xy(trifield)
abc2xy()所属R语言包:trifield
Project unity-summed triples (a, b, c) to unit-square doubles (x, y)
项目单位总结三元组(A,B,C),单位平方双打(X,Y)
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Given a matrix of ternary values, this function will compute their x, y coordinates.
鉴于三进制值的矩阵,该函数将计算x,y坐标。
用法----------Usage----------
abc2xy(abc)
参数----------Arguments----------
参数:abc
A 3-column matrix containing unity-summed triples
A 3列的矩阵,包含单位总结的三倍
Details
详细信息----------Details----------
The x, y coordinates are scaled such that the altitude of the equilateral triangle defining the ternary space is equal to one.
x,y坐标进行缩放,使得定义的三元空间的等边三角形的高度,等于一。
值----------Value----------
A matrix of x, y values, one per row
x,y值,每行一个矩阵
(作者)----------Author(s)----------
Timothy H. Keitt <tkeitt@gmail.com>
参见----------See Also----------
xy2abc
xy2abc
实例----------Examples----------
## The function is currently defined as[#功能目前被定义为]
function(abc)
{
tmat = c(1 / sqrt(3), 0, 2 / sqrt(3), 1, 0, 0)
dim(tmat) = c(3, 2)
res = as.matrix(abc) %*% tmat
colnames(res) = c("x", "y")
res
}
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|