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

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

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

                                        Draws a circle
                                         绘制一个圆

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

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

Draws a circle or an arc-circle on the current graphic device
当前的图形设备上绘制一个圆或弧圈


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


circle(x = 0, y = 0, r = 1, theta = c(0, 360), n = 100, ...)



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

参数:x
x coordinate for the center of the circle
x坐标为中心的圆


参数:y
y coordinate for the center of the circle
y坐标为中心的圆


参数:r
radius of the circle
圆的半径


参数:theta
start and stop angle
启动和停止角度


参数:n
number of points for polygon object
多边形对象的积分数


参数:...
arguments passed to polygon
参数传递给polygon


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

none
没有


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


J.R. Lobry



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

polygon
polygon


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


par(mfrow = c(2, 2), mar = c(0,0,2,0))
setup <- function(){
  plot.new()
  plot.window(xlim = c(-1,1), ylim = c(-1,1), asp = 1)
}

setup()
circle(col = "lightblue")
title(main = "theta = c(0, 360)")

setup()
circle(col = "lightblue", theta = c(0, 270))
title(main = "theta = c(0, 270)")

setup()
circle(col = "lightblue", theta = c(-90, 180))
title(main = "theta = c(-90, 180)")

setup()
n <- 20
for(i in seq(0, 360, length = n)){
  circle(col = "lightblue", theta = c(i, i+360/(2*n)))
}
title(main = "many thetas")

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-20 12:41 , Processed in 0.051741 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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