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

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

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

                                         adds part of a colored and rotated ellipse to a plot
                                         增加部分的颜色和旋转的椭圆形的图

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

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

adds (part of) a colored, and rotated ellipse to a plot; an arrow can be drawn at a specified position.
增加(部分)的着色,旋转椭圆形的地积,可以在指定的位置绘制一个箭头。


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


plotellipse(rx = 1, ry = 0.2, mid = c(0,0), dr = 0.01,
            angle = 0, from = -pi, to = pi, type = "l", lwd = 2,
            lcol = "black", col = NULL, arrow = FALSE,
            arr.length = 0.4, arr.width = arr.length*0.5,
            arr.type = "curved", arr.pos = 1, arr.code = 2,
            arr.adj = 0.5, arr.col = "black", ...)



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

参数:rx
long radius of ellipse.  
椭圆的长半径。


参数:ry
short radius of 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.  
椭圆段的最终角度,弧度。


参数:type
external line or points; "n" if no line.  
外线或点;如果没有线的“N”。


参数:lwd
width of external line.  
外部线路的宽度。


参数:lcol
line color.  
线的颜色。


参数:col
fill color.  
填充颜色。


参数:arrow
drawing arrowhead yes/no.  
绘制箭头是/否。


参数:arr.length
length of arrowhead.  
长的箭头。


参数:arr.width
width of arrowhead.  
宽的箭头。


参数:arr.type
type of arrow.  
类型的箭头。


参数:arr.pos
position of arrow, 0=start,1=end.  
位置的箭头,0 =启动,1 =结束。


参数:arr.code
integer code determining kind of arrows to draw.  
整数代码确定种箭头画。


参数:arr.adj
adjustment of arrow.  
调整的方向。


参数:arr.col
color of arrow head.  
箭头的颜色。


参数:...
arguments passed to R-function lines.  
参数传递给R-函数线。


Details

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

rx and ry are the horizontal and vertical radiusses of the ellipses.
rx和ry的椭圆的水平和垂直的radiusses。

The ellipse is drawn from the point defined by from to the point defined as to which are joined anti-clockwise.
从定义的fromto加入反时针方向定义的点绘制椭圆形。

if arrow is TRUE, an arrow is drawn along the path of the ellipse.
如果arrow是TRUE,绘制箭头沿着椭圆形的路径。

arr.length and arr.width set the size of the arrow.
arr.length和arr.width设置箭头的大小。

The type of the arrowhead is set with arr.type which can take the values:
类型的箭头arr.type的值可以取:

"simple"  : uses comparable R function arrows.
“简单”:使用可比性的R功能箭头。

"triangle": uses filled triangle.
“三角”:使用实心三角形。

"curved"  : draws arrowhead with curved edges.
“曲线”:绘制箭头弯曲的边缘。

"circle"  : draws circular head.
“圈子”:绘制圆形头部。

arr.pos, a real value between 0 and 1 gives the position (0=start,1=end).
arr.pos,一个真正的值在0和1之间,给人的位置(0 =启动,1 =结束)。

arr.col specifies the color, arr.code specifies where the angle points to.
arr.col指定颜色,arr.code指定的角点。

arr.adj specifies the position adjustment - see Arrows for details.
arr.adj指定的位置调整 - 见Arrows的详细信息。


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



Karline Soetaert <karline.soetaert@nioz.nl>




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

getellipse, filledellipse, plotcircle.
getellipse,filledellipse,plotcircle。


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


emptyplot(c(-1, 1), main = "plotellipse")
plotellipse(rx = 0.8, ry = 0.3, angle = 60, col = "blue")
plotellipse(rx = 1.0, ry = 0.6, angle = 0, from = pi, to = 2*pi,
            arrow = TRUE, arr.pos = seq(0.1, 0.5, by = 0.1),
            arr.col = rainbow(5))
plotellipse(rx = 1.0, ry = 0.6, angle = 30, from = pi, to = 1.2*pi,
            col = "red")
plotellipse(rx = 0.1, ry = 0.6, from = 1.5*pi, to = pi,
            lcol = "orange", mid = c(0.2,0.2))
plotellipse(rx = 0.1, ry = 0.6, angle = 30, from = 1.5*pi, to = pi,
            lcol = "orange", mid = c(0.2,0.2))

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-22 03:21 , Processed in 0.019737 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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