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

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

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

                                         adds part of a cylinder to a plot
                                         增加了一个圆柱体的部分的地积

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

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

adds a segment of a cylinder to a plot
添加一个圆柱体的地积段


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


cylindersegment(rx = 1, ry = rx, from = pi, to = 3*pi/2, len = 1,
                mid = c(0,0), angle = 0, dr = 0.01, col = "black",
                delt = 1.0, ...)



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

参数:rx
horizontal radius of full cylinder.  
满瓶的水平半径。


参数:ry
vertical radius  of full cylinder.  
满缸的垂直半径。


参数:from
start radius of segment, radians.  
开始段的半径,弧度。


参数:to
end radius of segment, radians.  
结束段的半径,弧度。


参数:len
cylinder length.  
筒体长度。


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


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


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


参数:col
color of slice.  
色片。


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


参数:...
arguments passed to polygon function.  
参数传递给多边形功能。


Details

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

When angle = 0 (the default), the cylindersegment is parallel to the x-axis.
当angle= 0(缺省值),cylindersegment是平行于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----------

filledcylinder
filledcylinder


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


emptyplot(main = "cylindersegment")
cylindersegment(mid = c(0.1, 0.5), rx = 0.1, ry = 0.1,
                from = pi, to = 3*pi/2, col = "blue",  
                len = 0.5, delt = 1.1, lwd = 2, angle = 90)
cylindersegment(mid = c(0.8, 0.5), rx = 0.1, ry = 0.1,
                from = 0, to = pi/2, col = "red", len = 0.5,
                delt = 1.0, lwd = 2, angle = 45)
cylindersegment(mid = c(0.5, 0.5), rx = 0.1, ry = 0.1,
                from = pi/2, to = pi, col = "lightblue",
                len = 0.2, delt = 1.5, lwd = 2)  
for (i in seq(0.1, 0.9, 0.1))
  cylindersegment(mid = c(i, 0.9), rx = 0.035, ry = 0.05,
                  from = pi/2, to = 3*pi/2, col = "darkblue",
                  len = 0.1, angle = 90)

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


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

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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