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

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

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

                                         adds a colored and rotated rectangle to a plot
                                         添加颜色和旋转矩形的图

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

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

plots and colors a rotated rectangle; color can be a palette
图和色彩的旋转矩形,颜色可以是调色板


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


filledrectangle(mid = c(0, 0), wx = 1, wy = wx, col = femmecol(100),
                values = NULL, zlim = NULL, lwd = 2, lcol = NA,
                angle = 0, ...)



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

参数:mid
midpoint of rectangle.  
矩形的中点。


参数:wx
horizontal width.  
水平宽度。


参数:wy
vertical width.  
垂直宽度。


参数: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.  
只有当该值不为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----------

If angle=0, coloration starts from top to bottom. This is different from filledmultigonal, where coloration proceeds from middle to external
如果angle= 0,着色开始从顶部向底部。这是不同的filledmultigonal,其中着色收益从中间到外部

wx,wy: horizontal and vertical width of the shape Here "horizontal" and "vertical" denote the position BEFORE rotation
wx,wy:水平和垂直的宽度的形状,在这里“水平”和“垂直”表示的位置前的旋转

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----------

filledmultigonal, filledshape, filledcylinder, filledellipse
filledmultigonal,filledshape,filledcylinder,filledellipse

polygon, rect for corresponding R-functions.
polygon,rect相应R-功能。


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


color <- shadepalette(grey(0.3), "lightblue", n = 50)
emptyplot(main = "filledrectangle")
filledrectangle(wx = 0.5, wy = 0.5, col = color,
                mid = c(0.5, 0.5), angle = 0)
filledrectangle(wx = 0.25, wy = 0.25, col = "darkblue",
                mid = c(0.5, 0.5), angle = 45)
filledrectangle(wx = 0.125, wy = 0.125, col = c("lightblue","blue"),
                mid = c(0.5, 0.5), angle = 90)
  
color <- shadepalette(grey(0.3), "blue", n = 50)
emptyplot(c(-1, 1), main = "filledrectangle")
filledrectangle(wx = 0.5, wy = 0.5, col = color,
                mid = c(0, 0), angle = 0)
filledrectangle(wx = 0.5, wy = 0.5, col = color,
                mid = c(0.5, 0.5), angle = 90)
filledrectangle(wx = 0.5, wy = 0.5, col = color,
                mid = c(-0.5, -0.5), angle = -90)
filledrectangle(wx = 0.5, wy = 0.5, col = color,
                mid = c(0.5, -0.5), angle = 180)
filledrectangle(wx = 0.5, wy = 0.5, col = color,
                mid = c(-0.5, 0.5), angle = 270)

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


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

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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