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:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|