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

R语言:units()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-16 18:55:31 | 显示全部楼层 |阅读模式
units(graphics)
units()所属R语言包:graphics

                                        Graphical Units
                                         图形单位

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

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

xinch and yinch convert the specified number of inches given as their arguments into the correct units for plotting with graphics functions.  Usually, this only makes sense when normal coordinates are used, i.e., no log scale (see the log argument to par).
xinch和yinch转换到正确的单位,作为他们的论据英寸绘制图形功能的指定数目。通常情况下,这不仅使感时使用正常的坐标,即没有log规模(见logpar参数)。

xyinch does the same for a pair of numbers xy, simultaneously.
xyinch不xy,同时为一对数字相同。


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


xinch(x = 1, warn.log = TRUE)
yinch(y = 1, warn.log = TRUE)
xyinch(xy = 1, warn.log = TRUE)



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

参数:x,y
numeric vector
数字向量


参数:xy
numeric of length 1 or 2.
长度为1或2个数字。


参数:warn.log
logical; if TRUE, a warning is printed in case of active log scale.
逻辑;如果TRUE,在活动日志规模的情况下,中印警告。


举例----------Examples----------


all(c(xinch(),yinch()) == xyinch()) # TRUE[真]
xyinch()
xyinch #- to see that is really   delta{"usr"} / "pin"[ - 看到这实在是三角洲{“USR”} /“脚”]

## plot labels offset 0.12 inches to the right[#积标签抵消了0.12英寸的权利]
## of plotted symbols in a plot[排名策划的图中的符号]
with(mtcars, {
    plot(mpg, disp, pch=19, main= "Motor Trend Cars")
    text(mpg + xinch(0.12), disp, row.names(mtcars),
         adj = 0, cex = .7, col = 'blue')
    })

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-5 02:16 , Processed in 0.026767 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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