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

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

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

                                         adds a colored and rotated ellipse to a plot
                                         添加颜色和旋转椭圆形的地积

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

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

plots (part of) outer and inner ellipses and colors inbetween; color can be a palette
图(部分)外层和内层椭圆形和颜色的插图中,颜色可以是一个调色板


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


filledellipse(rx1 = 1, rx2 = 0, ry1 = rx1, ry2 = NULL, mid = c(0,0),
  dr = 0.01, angle = 0, from = -pi, to = pi, col = femmecol(100),  
  values = NULL, zlim = NULL, lwd = 2, lcol = NA, ...)



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

参数:rx1
horizontal radius of outer ellipse.  
水平外椭圆半径。


参数:rx2
horizontal radius of inner ellipse.  
水平半径内的椭圆形。


参数:ry1
vertical radius of outer ellipse.  
外椭圆形的垂直半径。


参数:ry2
vertical radius of inner ellipse.  
垂直半径内的椭圆形。


参数:mid
midpoint of ellipse.  
椭圆中点。


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


参数:angle
rotation angle, degrees.  
旋转角(度)。


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


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


参数: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----------

draws (part of) an outer and inner ellipse, as specified by inner and outer radiusses:
绘制的(部分)的外和内的椭圆形,所指定的内和外radiusses:

rx1,ry1: horizontal and vertical radiusses of outer ellipse; rx2,ry2: same for inner ellipse. Here "horizontal" and "vertical" denote the position BEFORE rotation
rx1,ry1:水平和垂直radiusses的外椭圆形;rx2,ry2:内椭圆相同。这里的“水平”和“垂直”的参数表示前的旋转位置

Fills with a palette of colors inbetween
填写一个调色板的颜色之间

values: if not NULL, a matrix providing (radius,z-values) couples, used for coloring. Here radius are positive values denoting the relative distance between the shapes centre and edge. The radiusses are rescaled to be in [0,1] if needed. z-values (2nd column of values) together with zlim and col denote the coloration level.
values:如果不是NULL,矩阵(半径,Z值)夫妇,用于着色。这里半径是正的值,表示的形状的中心和边缘之间的相对距离。重新调整的radiusses是在[0,1]如果需要的话。 z值(第二列values)一起zlim和col表示显色程度。

Colors in col will be interpolated to the z-values and used to color an interval as given by the input radiusses.
颜色在col将被内插的z值,并用于到如由输入radiusses给出一个区间着色。

If rx2, the radius of the inner ellipse is 0, the ellipse is full.
如果rx2,内椭圆的半径是0,椭圆已满。


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



Karline Soetaert <karline.soetaert@nioz.nl>




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

filledshape, filledcylinder
filledshape,filledcylinder


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


color <- greycol(50)
dr    <- 0.05
emptyplot(xlim = c(-2, 2), ylim = c(-2, 2), col = color[length(color)],
          main = "filledellipse")
filledellipse(rx1 = 1, mid = c(1, 1) , dr = dr,
              col = shadepalette(endcol = "darkblue"))
filledellipse(rx1 = 1, ry1 = 0.5, mid = c(-1, -1), dr = dr, angle = 90,
              col = shadepalette(endcol = "darkred"))
filledellipse(rx1 = 1, ry1 = 0.5, rx2 = 0.5, dr = dr, mid = c(0, 0),
              col = c(rev(color), color))
filledellipse(rx1 = 0.5, mid = c(1, -1), dr = dr, from = pi,  to = 1.5*pi,
              col = rev(shadepalette(endcol = "black")))
filledellipse(mid = c(-1, 1))  
  
emptyplot(xlim = c(-2, 2), ylim = c(-2, 2), main = "filledellipse")
filledellipse(rx1 = 0.75, mid = c(-1, 1), col = greycol(100) , dr = dr,  
              values = cbind (1:100, (1:100)^0.5))
filledellipse(rx1 = 0.75, mid = c(1, 1), col = greycol(100)  , dr = dr,  
              values = cbind (1:100, (1:100)))
filledellipse(rx1 = 0.75, mid = c(-1, -1), col = greycol(100), dr = dr,  
              values = cbind (1:100, (1:100)^2))
filledellipse(rx1 = 0.75, mid = c(1, -1), col = greycol(100) , dr = dr,  
              values = cbind (1:100, (1:100)^5))

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-22 07:27 , Processed in 0.020009 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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