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

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

[复制链接]
发表于 2012-2-25 16:58:01 | 显示全部楼层 |阅读模式
pointsCircle(ecolitk)
pointsCircle()所属R语言包:ecolitk

                                         Functions to plot circular related figures
                                         函数来绘制圆的相关数字

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

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

Functions to plot circular related figures
函数来绘制圆的相关数字


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


linesCircle(radius, center.x = 0, center.y = 0, edges = 300, ...)
polygonDisk(radius, center.x = 0, center.y = 0, edges=300,
...)
arrowsArc(theta0, theta1, radius, center.x = 0, center.y = 0, edges = 10,
          length = 0.25, angle = 30, code = 2, ...)
pointsArc(theta0, theta1, radius, center.x = 0, center.y = 0, ...)
linesArc(theta0, theta1, radius, center.x = 0, center.y = 0, ...)
polygonArc(theta0, theta1, radius.in, radius.out,
           center.x = 0, center.y = 0,
           edges = 10,
           col = "black",
           border = NA,
           ...)



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

参数:theta0, theta1
start and end angles for the arc
开始和结束角度为圆弧


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


参数:radius.in
inner radius  
内径


参数:radius.out
outer radius  
外半径


参数:center.x, center.y
Coordinates for the center of the circle (default to (0, 0))
圆心坐标为(默认为(0,0))


参数:edges
number of edges the shape is made of  
边数的形状是由


参数:col
color
颜色


参数:border
border (see polygon)
边界(见polygon)


参数:length, angle, code
see the corresponding parameters for the function arrows
见相应的参数的函数arrows


参数:...
optional graphical paramaters
可选的图形paramaters


Details

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

Details to come... for now the best to run the examples and experiment by yourself...
详情...现在最好的运行自己的例子和实验...


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

Function only used for their border effects.
功能只能用于其边界效应。


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


laurent



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


par(mfrow=c(2,2))
n <- 10
thetas <- rev(seq(0, 2 * pi, length=n))

rhos <- rev(seq(1, n) / n)

xy <- polar2xy(rhos, thetas)
colo <- heat.colors(n)

plot(0, 0, xlim=c(-2, 2), ylim=c(-2, 2), type="n")
for (i in 1:n)
  linesCircle(rhos[i]/2, xy$x[i], xy$y[i])

plot(0, 0, xlim=c(-2, 2), ylim=c(-2, 2), type="n")
for (i in 1:n)
  polygonDisk(rhos[i]/2, xy$x[i], xy$y[i], col=colo[i])

plot(0, 0, xlim=c(-2, 2), ylim=c(-2, 2), type="n", xlab="", ylab="")
for (i in 1:n)
  polygonArc(0, thetas[i],
             rhos[i]/2, rhos[i],
             center.x = xy$x[i], center.y = xy$y[i], col=colo[i])

plot(0, 0, xlim=c(-2, 2), ylim=c(-2, 2), type="n", xlab="", ylab="")
for (i in (1:n)[-1]) {
  linesCircle(rhos[i-1], col="gray", lty=2)
  polygonArc(thetas[i-1], thetas[i],
             rhos[i-1], rhos[i], col=colo[i],
             edges=20)
  arrowsArc(thetas[i-1], thetas[i],
             rhos[i] + 1, col=colo[i],
             edges=20)
}
  

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-11 09:25 , Processed in 0.026522 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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