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

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

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

                                        Draw a single circle
                                         绘制一个圆

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

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

Adds a single circle to an already opened plot.
将一个单圈,一个已经打开的图。


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


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



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

参数:x
a numerical value giving the center's x-coordinate.
一个数值,该中心的x坐标。


参数:y
a numerical value giving the center's y-coordinate.
一个数值,该中心的y坐标。


参数:radius
a numerical vector giving the circle's radius.
一个数值向量,圆的半径。


参数:nv
number of vertices in the approximating polygon.
近似多边形的顶点的数目。


参数:fg
color of the circle's rim.
颜色的圆的边缘。


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


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


参数:lty
line type of the circle.
直线型的圆。


参数:lwd
line width of the circle.
的圆的线宽。


参数:pch
symbol used for the center of the circle.
使用的符号为中心的圆。


参数:cex
magnification factor for the symbol used for the center of the circle.
中使用的符号为中心的圆的倍率。


Details

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

This function is mainly a wrapper for polygon. To draw more than a few circles efficiently, use symbols instead.
此功能是主要的包装polygon。要绘制多了几个圈子,有效地使用symbols代替。


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

polygon
polygon


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


c1 <- c(1, 2)                 # circle center[圆心]
c2 <- c(2, 3)                 # another circle center[另一个圆心]
r1 <- 2                       # circle radius[圆的半径]
r2 <- 0.5                     # another circle radius[另一个圆的半径]

# determine axis limits so that circles will be visible[确定轴的限制,使各界将是可见的]
xLims <- c1[1] + c(-r1, r1)
yLims <- c1[2] + c(-r1, r1)

plot(c1[1], c1[2], type='n', asp=1, xlim=xLims, ylim=yLims)
drawCircle(c1[1], c1[2], r1, fg='blue', colCtr='blue', pch=19)
drawCircle(c2[1], c2[2], r2, fg='red', bg='red', colCtr='black', pch=4)

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


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

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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