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

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

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

                                        Convert between Graphics Coordinate Systems
                                         图形坐标系之间的转换

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

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

Convert between graphics coordinate systems.
图形坐标系之间的转换。


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


grconvertX(x, from = "user", to = "user")
grconvertY(y, from = "user", to = "user")



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

参数:x, y
numeric vector of coordinates.
数字向量的坐标。


参数:from, to
character strings giving the coordinate systems to convert between.
字符串给的坐标系之间的转换。


Details

详情----------Details----------

The coordinate systems are
坐标系统




"user" user coordinates.
"user"用户坐标。




"inches" inches.
"inches"英寸。




"device" the device coordinate system.
"device"设备坐标系统。




"ndc" normalized device coordinates.
"ndc"规范化设备坐标。




"nfc" normalized figure coordinates.
"nfc"归图坐标。




"npc" normalized plot coordinates.
"npc"归积的坐标。




"nic" normalized inner region coordinates.  (The
"nic"归内区域的坐标。 (“

(These names can be partially matched.)  For the "normalized" coordinate systems the lower left has value 0 and the top right value 1.
(这些名称可部分匹配。)归坐标系的左下角有值0和1右上角价值。

Device coordinates are those in which the device works: they are usually in pixels where that makes sense and in big points (1/72 inch) otherwise (e.g. pdf and postscript).
设备坐标是那些在该装置的工作原理:他们通常在像素的地方是有道理的,在大点(1/72英寸),否则(例如pdf和postscript)。


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

A numeric vector of the same length as the input.
一个相同的长度作为输入的数字向量。


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


op <- par(omd=c(0.1, 0.9, 0.1, 0.9), mfrow = c(1, 2))
plot(1:4)
for(tp in c("in", "dev", "ndc", "nfc", "npc", "nic"))
    print(grconvertX(c(1.0, 4.0), "user", tp))
par(op)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-3 02:06 , Processed in 0.031278 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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