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

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

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

                                         adds colored circle to a plot
                                         增加了彩色的圆圈的图

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

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

plots (part of) outer and inner circle and colors inbetween; color can be a palette.
图(部分)外和内圆和颜色,它们中间的颜色可以是一个调色板。


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


filledcircle(r1 = 1, r2 = 0, mid = c(0,0), dr = 0.01, from = -pi, to = pi,
  col = femmecol(100), values = NULL, zlim = NULL, lwd = 2, lcol = NA, ...)



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

参数:r1
radius of outer circle.  
外圈半径。


参数:r2
radius of inner circle.  
内圆的半径。


参数:mid
midpoint of circle.  
圆的中点。


参数:dr
size of segments, in radians, to draw circle (decrease for smoother).  
段的大小,以弧度以画圆(减少平滑)。


参数:from
starting angle for circle segment, radians.  
圆弧的起始角度,弧度。


参数:to
final angle for circle segment, radians. The segment is drawn  counterclockwise. The default is to draw a full circle.  
最后圆弧角度,弧度。段逆时针绘制。默认情况是绘制一个完整的圆。


参数:col
color palette to be used; also allowed are two extremes or one value.  
调色板使用;也允许有两个极端,一个值。


参数:values
if not NULL, a matrix providing (radius,z-values) couples, used for coloring. .  
如果不是NULL,矩阵(半径,Z值)夫妇,用于着色。 。


参数:zlim
Only if values is not NULL: the minimum and maximum z values for which colors should be plotted, defaulting to the range of the finite values of the second column of values.  
只有values非NULL:最小和最大z值的颜色应该被绘制,默认的范围的有限值的第二列values。


参数:lwd
width of external line.  
外部线路的宽度。


参数:lcol
line color.  
线的颜色。


参数:...
arguments passed to R-function polygon.  
参数传递给R-函数的多边形。


Details

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

see filledellipse for details
filledellipse的详细信息,


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



Karline Soetaert <karline.soetaert@nioz.nl>




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

filledshape, filledcylinder, filledellipse
filledshape,filledcylinder,filledellipse


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


color <-graycol(n = 50)
dr    <- 0.05
emptyplot(xlim = c(-2, 2), col = color[length(color)],
          main = "filledcircle")
filledcircle(r1 = 1, mid = c(1, 1), dr = dr,
          col = shadepalette(endcol = "darkblue"))
filledcircle(r1 = 1, mid = c(-1, -1), dr = dr,
          col = shadepalette(endcol = "darkred"))
filledcircle(r1 = 1, r2 = 0.5, mid = c(0, 0), dr = dr,
          col = c(rev(color), color))
filledcircle(r1 = 1, mid = c(1, -1), dr = dr,
          col = intpalette(c("red", "blue", "orange"), 100))
filledcircle(mid = c(-1, 1))
  
emptyplot(main = "filledcircle")

for (i in seq(0, 0.45, 0.05))
   filledcircle(r1 = i+0.05, r2 = i,
                mid = c(0.5, 0.5), col = i*20)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-22 11:39 , Processed in 0.028159 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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