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

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

[复制链接]
发表于 2012-9-30 01:57:31 | 显示全部楼层 |阅读模式
drawBox(shotGroups)
drawBox()所属R语言包:shotGroups

                                        Draw an axis-aligned box
                                         绘制轴对齐框

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

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

Adds an axis-aligned box to an already opened plot.
添加轴对齐箱一个已经打开的图。


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


        colCtr = NA, lty = par('lty'), lwd = par('lwd'),



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

参数:xleft
a vector (or scalar) of left x positions.
一个向量(或标量)的左x位置。


参数:ybottom
a vector (or scalar) of bottom y positions.
一个向量(或标量)的底部y位置。


参数:xright
a vector (or scalar) of right x positions.
一个合适的x位置矢量(或标量)。


参数:ytop
a vector (or scalar) of top y positions.
一个向量(或标量)的顶部y位置。


参数:fg
color of the box' rim.
颜色的盒子边缘。


参数:bg
the box' fill color. Set to NA for a fully transparent box.
框的填充颜色。设置为NA一个完全透明的盒子。


参数:colCtr
color of the center point. Set to NA to omit.
色的中心点。设置为NA省略。


参数:lty
line type of the box.
的方块的行类型。


参数:lwd
line width of the box.
线宽度的方块。


参数:pch
symbol used for the center of the box.
符号用于框的中心。


参数:cex
magnification factor for the symbol used for the center of the box.
倍率用于攻门符号。


Details

详细信息----------Details----------

This function is mainly a wrapper for rect.
此功能是主要的包装rect。


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

getBoundingBox, rect
getBoundingBox,rect


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


xy  <- matrix(round(rnorm(20, 100, 15), 1), ncol=2)
(bb <- getBoundingBox(xy))

plot(xy, asp=1, pch=16)
drawBox(bb$pts[1], bb$pts[2], bb$pts[3], bb$pts[4],
        fg='blue', colCtr='blue', pch=4, cex=2)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-22 06:52 , Processed in 0.020778 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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