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

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

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

                                         adds a colored and rotated cylinder to a plot
                                         添加颜色和旋转气缸的图

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

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

adds a rotated and colored cylinder to a plot; color can be a palette
增加了旋转和彩色缸的图,颜色可以是一个调色板


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


filledcylinder(rx = 1, ry = rx, len = 1, col = femmecol(100),
              lcol = NA, lwd = 2, lcolint = NULL, ltyint = 1,
              lwdint = lwd, mid = c(0,0), angle = 0, delt = 1,
              dr = 0.01, topcol = NULL, botcol = NULL, ...)



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

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


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


参数:len
length.  
长度。


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


参数:lcol
line color on external surface.  
外表面的线的颜色。


参数:lwd
only if lcol!=NA, width of external line.  
如果LCOL = NA,复杂的外部连线的宽度。


参数:lcolint
only if lcol!=NA, line color on internal (hidden) surface.  
如果LCOL = NA,内部(隐藏)表面上的线条颜色。


参数:ltyint
only if lcol!=NA, line type on internal (hidden) surface.  
如果LCOL = NA,内部(隐藏)表面上的线路类型。


参数:lwdint
only if dlcol!=NA, line width on internal (hidden) surface.  
如果dlcol = NA,内部(隐藏)表面上的线宽度。


参数:mid
midpoint of cylinder.  
中点缸。


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


参数:delt
increase factor, from left to right.  
增加的因素,由左到右。


参数:dr
size of segments, in radians, to draw top/bottom ellipse  (decrease for smoother).  
段的大小,单位为弧度,画顶部/底部的椭圆形(减少平滑)。


参数:topcol
color (palette) of top (right) surface.  
顶部(右)表面的颜色(调色板)。


参数:botcol
color (palette) of bottom (left) surface.  
底部(左)面的颜色(调色板)。


参数:...
arguments passed to function filledellipse.  
参数传递功能filledellipse。


Details

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

When angle = 0 (the default),  the cylinder is parallel to the x-axis
当角度= 0(缺省值),该气缸是平行于x-轴的

rx and ry are the horizontal and vertical radiusses of the bordering ellipses. Here "horizontal" and "vertical" denote the position BEFORE rotation
rx和ry是的接壤的椭圆水平和垂直radiusses的。这里的“水平”和“垂直”的参数表示前的旋转位置

if delt > 1, the width of the cylinder will increase from left to right.
如果delt> 1,气缸的宽度将增加由左到右。


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



Karline Soetaert <karline.soetaert@nioz.nl>




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

filledellipse, filledshape
filledellipse,filledshape


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


emptyplot(c(-1.2, 1.2), c(-1, 1), main = "filledcylinder")
col  <- c(rev(greycol(n = 50)), greycol(n = 50))
col2 <- shadepalette("red", "blue", n = 50)
col3 <- shadepalette("yellow", "black", n = 50)
filledcylinder(rx = 0., ry = 0.2, len = 0.25, angle = 0, col = col,  
          mid = c(-1, 0), topcol = col[25])         
filledcylinder(rx = 0., ry = 0.2, angle = 90, col = col,
          mid = c(-0.5, 0), topcol = col[25])         
filledcylinder(rx = 0.1, ry = 0.2, angle = 90, col = c(col2, rev(col2)),
          mid = c(0.45, 0), topcol = col2[25])         
filledcylinder(rx = 0.05, ry = 0.2, angle = 90, col = c(col3, rev(col3)),
          mid = c(0.9, 0), topcol = col3[25])         
filledcylinder(rx = 0.1, ry = 0.2, angle = 90, col = "white",  
          lcol = "black", lcolint = "grey")         
  
emptyplot(c(-1, 1), c(-1, 1), main = "filledcylinder")
col  <- shadepalette("blue", "black", n = 50)
col2 <- shadepalette("red", "black", n = 50)
col3 <- shadepalette("yellow", "black", n = 50)
filledcylinder(rx = 0.025, ry = 0.2, angle = 90, col = c(col2, rev(col2)),
          mid = c(-0.8, 0), topcol = col2[25], delt = -1, lcol = "black")
filledcylinder(rx = 0.1, ry = 0.2, angle = 00, col = c(col, rev(col)),
          mid = c(0.0, 0.0), topcol = col, delt = -1.2, lcol = "black")
filledcylinder(rx = 0.075, ry = 0.2, angle = 90, col = c(col3, rev(col3)),
          mid = c(0.8, 0), topcol = col3[25], delt = 0.0, lcol = "black")

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-22 07:28 , Processed in 0.018823 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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