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

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

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

                                         adds a colored and rotated multigonal shape to a plot
                                         增加一个彩色的和旋转multigonal的形状的地积

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

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

draws and colors a rotated shape with equal-sized vertices ; color can be a palette.
绘制和颜色的旋转形状与大小相等的顶点,颜色可以是一个调色板。


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


filledmultigonal(mid = c(0, 0), rx = 1, ry = rx, nr = 4,
                 col = femmecol(100), values = NULL,
                 zlim = NULL, lwd = 2, lcol = NA, angle = 0, ...)



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

参数:mid
midpoint of multigonal.  
中点multigonal。


参数:rx
horizontal radius.  
水平半径。


参数:ry
vertical radius.  
垂直半径。


参数:nr
number of sides.  
边数。


参数: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.  
线的颜色。


参数:angle
angle of rotation, in degrees.  
的旋转角度,单位为度。


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


Details

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

Coloration proceeds from midpoint to external edge
着色中点所得款项外部边缘

rx,ry: horizontal and vertical radiusses of the shape. Here "horizontal" and "vertical" denote the position BEFORE rotation
rx,ry:的形状的水平和垂直radiusses的。这里的“水平”和“垂直”的参数表示前的旋转位置

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给出一个区间着色。


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



Karline Soetaert <karline.soetaert@nioz.nl>




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

filledrectangle, filledshape, filledcylinder, filledellipse
filledrectangle,filledshape,filledcylinder,filledellipse


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


emptyplot(c(-1, 1), main = "filledmultigonal")

filledmultigonal(rx = 0.25, ry = 0.125, nr = 3, mid = c(-0.75, 0.75),
            angle = 45, col = shadepalette("red", "blue", n = 50))
filledmultigonal(rx = 0.125, ry = 0.25, nr = 3, mid = c(-0.25, 0.75),
            col = shadepalette("red", "yellow", n = 50))
filledmultigonal(rx = 0.25, ry = 0.25 , nr = 3, mid = c(0.25, 0.75),  
            col = c("red", "orange"))
filledmultigonal(rx = 0.25, ry = 0.25 , nr = 3, mid = c(0.75, 0.75),
            angle = 90,  col = "red")

filledmultigonal(rx = 0.25, ry = 0.25, nr = 4, mid = c(-0.75, 0.25),
            angle = 0, col = shadepalette("red", "blue", n = 50))
filledmultigonal(rx = 0.25, ry = 0.25, nr = 4, mid = c(-0.25, 0.25),  
            angle = 45, col = shadepalette("red", "blue", n = 50))
filledmultigonal(rx = 0.25, ry = 0.125, nr = 4, mid = c(0.25, 0.25),
            angle = 0, col = shadepalette("red", "blue", n = 50))
filledmultigonal(rx = 0.25, ry = 0.125, nr = 4, mid = c(0.75, 0.25),
            angle = 45, col = shadepalette("red", "blue", n = 50))
  
filledmultigonal(rx = 0.25, ry = 0.25, nr = 5, mid = c(-0.75, -0.25),  
            angle = 0, col = shadepalette("darkgreen", "lightgreen", n = 50))
filledmultigonal(rx = 0.25, angle = 0, nr = 5, mid = c(-0.25, -0.25),
            col = rainbow(50))
filledmultigonal(rx = 0.25, angle = 30, nr = 6, mid = c(0.25, -0.25),
            col = femmecol(50))
filledmultigonal(rx = 0.25, ry = 0.125, angle = 30, nr = 6, mid = c(0.75, -0.25),
            col = "black")
  
filledmultigonal(rx = 0.25, col = "darkblue", nr = 7, mid = c(-0.75, -0.75))
filledmultigonal(rx = 0.25, col = "darkblue", nr = 9, mid = c(-0.25, -0.75))
filledmultigonal(rx = 0.25, col = "darkblue", nr = 3.7, mid = c(0.25, -0.75))
filledmultigonal(rx = 0.25, col = "darkblue", nr = 4.5, mid = c(0.75, -0.75))

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-22 06:43 , Processed in 0.022240 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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