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

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

[复制链接]
发表于 2012-10-1 12:04:20 | 显示全部楼层 |阅读模式
ternary.legend(trifield)
ternary.legend()所属R语言包:trifield

                                         Plots a ternary legend
                                         绘制一个三元传说的

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Plots a legend giving the directions of the ternary axes and labels
绘制一个传说给出的三元轴的方向和标签


用法----------Usage----------


ternary.legend(x0 = 0.2, y0 = 0.8, radius = 0.1, lab1 = "A", lab2 = "B", lab3 = "C", infl = 1.5, cex = 0.75, length = 0.05, ...)



参数----------Arguments----------

参数:x0
x-coordinate of the center point
x坐标的中心点


参数:y0
y-coordinate of the center point
的y坐标的中心点


参数:radius
how long to draw the axes
如何绘制轴


参数:lab1
string giving first axis label
第一轴标签的字符串


参数:lab2
string giving second axis label
给第二轴标签的字符串


参数:lab3
string giving third axis label
字符串,给出了第三个轴标签


参数:infl
space between axes and labels
轴和标签之间的空间


参数:cex
size of the labels
标签的大小


参数:length
length of axis lines
轴线的长度


参数:...
additional parameters passed to arrows
额外的参数传递给arrows


值----------Value----------

None



(作者)----------Author(s)----------



Tim Keitt <tkeitt@gmail.com>




参见----------See Also----------

plot.trifield
plot.trifield


实例----------Examples----------


## The function is currently defined as[#功能目前被定义为]
function(x0 = 0.2, y0 = 0.8, radius = 0.1,
                          lab1 = 'A', lab2 = 'B', lab3 = 'C',
                          infl = 1.5, cex = 0.75, length = 0.05, ...)
{
        lx = 2 / sqrt(3)
        x1 = x0
        y1 = y0 + radius
        arrows(x0, y0, x1, y1, length = length, ...)
        y1 = y0 + infl * radius
        text(x1, y1, lab1, cex = cex)
        x1 = x0 - radius * cos(pi / 6)
        y1 = y0 - radius * sin(pi / 6)
        arrows(x0, y0, x1, y1, length = length, ...)
        x1 = x0 - infl * radius * cos(pi / 6)
        y1 = y0 - infl * radius * sin(pi / 6)
        text(x1, y1, lab2, cex = cex)
        x1 = x0 + radius * cos(pi / 6)
        y1 = y0 - radius * sin(pi / 6)
        arrows(x0, y0, x1, y1, length = length, ...)
        x1 = x0 + infl * radius * cos(pi / 6)
        y1 = y0 - infl * radius * sin(pi / 6)
        text(x1, y1, lab3, cex = cex)
  }

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-15 15:09 , Processed in 0.022851 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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