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

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

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

                                        adds arrowheads to a plot
                                         添加箭头的图

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

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

adds one or more arrowheads to a plot; shape is either curved, a triangle, a circle or ellipse.
添加一个或多个箭头的图;弯曲形状,三角形,圆形或椭圆形。


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


Arrowhead(x0, y0, angle = 0, arr.length = 0.4,
          arr.width = arr.length/2, arr.adj = 0.5,
          arr.type = "curved", lcol = "black", lty = 1,
          arr.col = lcol, arr.lwd = 2, npoint = 5)



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

参数:x0
x-coordinates of points at which to draw arrowhead; either one value or a vector.  
在要绘制箭头的点的x坐标的任一个值或一个矢量。


参数:y0
y-coordinates of points at which to draw arrowhead; either one value or a vector.  
y坐标的点,在要绘制箭头;的任一个值或一个矢量。


参数:angle
angle of arrowhead (anti-clockwise, relative to x-axis), in degrees [0,360]; either one value or a vector.  
箭头(反时针方向,相对x轴)的角度,以度为[0360]的任一个值或一个矢量。


参数:arr.length
approximate length of arrowhead, in cm; either one value or a vector.  
近似长度的箭头,以厘米为一个值或一个矢量。


参数:arr.width
approximate width of arrowhead, in cm; either one value or a vector.  
箭头,在近似宽度厘米;的任一个值或一个矢量。


参数:arr.adj
0,0.5,1 specifying the adjustment of the arrowhead.  
0,0.5,1指定的箭头的调整。


参数:arr.type
type of arrowhead to draw, one of "curved","triangle","circle","ellipse".  
类型的箭头画的“曲线”,“三角”,“圆”,“椭圆”。


参数:lcol
line color specifications; either one value or a vector.  
线的颜色规格,任何一个值或一个向量。


参数:lty
line type specifications; either one value or a vector.  
线路类型规格;任何一个值或一个向量。


参数:arr.col
color of arrowhead; either one value or a vector.  
颜色的箭头;的任一个值或一个矢量。


参数:arr.lwd
line width of arrowhead.  
直线宽度的箭头。


参数:npoint
only if arr.type = "curved": number of points to draw the curve; increase for smoother arrowheads
只有arr.type=“曲线”的绘制曲线的点的数量,增加流畅的箭头


Details

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

x0, y0, angle, arr.length, arr.width, lcol, lty and arr.col can be a vector, of the same length.
x0,y0,angle,arr.length,arr.width,lcol,lty和arr.col可以是一个向量,具有相同的长度。

if arr.adj = 0.5, then the centre of the arrowhead is at the point at which it is drawn.
如果arr.adj= 0.5,然后在箭头的中心,是在它被绘制在点。

arr.adj = 1 causes the tip of the arrowhead to touch the point.
arr.adj= 1导致的箭头的前端接触的点。

arr.adj = 0 causes the base of the arrowhead to touch the point.
arr.adj= 0时,箭头的基础上触摸的点。

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

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

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

"circle"  : draws circular head (where arr.width=arr.length)
“圈子”:绘制圆形头(其中arr.width = arr.length)

"ellipse" : draws ellipsoid head
“椭圆”:绘制椭球头


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



Karline Soetaert <karline.soetaert@nioz.nl>




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

Arrows
Arrows


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


emptyplot(main = "Arrowhead")
Arrowhead(x0 = runif(10), y0 = runif(10), angle = runif(10)*360,
          arr.length = 0.3, arr.type = "circle", arr.col = "green")
Arrowhead(x0 = runif(10), y0 = runif(10), angle = runif(10)*360,
          arr.length = 0.4, arr.type = "curved", arr.col = "red")
Arrowhead(x0 = runif(10), y0 = runif(10), angle = runif(10)*360,
          arr.length = runif(10), arr.type = "triangle",
          arr.col = rainbow(10))

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


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

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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