找回密码
 注册
查看: 511|回复: 0

R语言 trifield包 abc2xy()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-10-1 12:03:54 | 显示全部楼层 |阅读模式
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:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-6-15 21:55 , Processed in 0.024123 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表