gplot.arrow(sna)
gplot.arrow()所属R语言包:sna
Add Arrows or Segments to a Plot
添加箭头或段的图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
gplot.arrow draws a segment or arrow between two pairs of points; unlike arrows or segments, the new plot element is drawn as a polygon.
gplot.arrow两对点之间绘制一个部分或箭头,不像arrows或segments,新的图形元素绘制的多边形。
用法----------Usage----------
gplot.arrow(x0, y0, x1, y1, length = 0.1, angle = 20, width = 0.01,
col = 1, border = 1, lty = 1, offset.head = 0, offset.tail = 0,
arrowhead = TRUE, curve = 0, edge.steps = 50, ...)
参数----------Arguments----------
参数:x0
A vector of x coordinates for points of origin
一个向量的X坐标为始发站
参数:y0
A vector of y coordinates for points of origin
一个向量的y坐标为始发站
参数:x1
A vector of x coordinates for destination points
一个向量目标点的X坐标
参数:y1
A vector of y coordinates for destination points
一个向量的y坐标目标点
参数:length
Arrowhead length, in current plotting units
箭头长度,在当前的绘图单位
参数:angle
Arrowhead angle (in degrees)
箭头角(度)
参数:width
Width for arrow body, in current plotting units (can be a vector)
箭体宽度,在当前的绘图单元(可以是一个向量)
参数:col
Arrow body color (can be a vector)
箭体色(可以是一个矢量)
参数:border
Arrow border color (can be a vector)
箭边框颜色(可以是一个向量)
参数:lty
Arrow border line type (can be a vector)
箭边界线类型(可以是一个向量)
参数:offset.head
Offset for destination point (can be a vector)
目标点的偏移量(矢量)
参数:offset.tail
Offset for origin point (can be a vector)
原点偏移量(矢量)
参数:arrowhead
Boolean; should arrowheads be used? (Can be a vector))
布尔,箭头使用? (可以是向量))
参数:curve
Degree of edge curvature (if any), in current plotting units (can be a vector)
度的边缘曲率(如有的话),在当前的绘制单元(可以是一个向量)
参数:edge.steps
For curved edges, the number of steps to use in approximating the curve (can be a vector)
对于弯曲的边缘,步骤的数目,使用近似曲线(可以是一个向量)
参数:...
Additional arguments to polygon
额外的参数polygon
Details
详细信息----------Details----------
gplot.arrow provides a useful extension of segments and arrows when fine control is needed over the resulting display. (The results also look better.) Note that edge curvature is quadratic, with curve providing the maximum horizontal deviation of the edge (left-handed). Head/tail offsets are used to adjust the end/start points of an edge, relative to the baseline coordinates; these are useful for functions like gplot, which need to draw edges incident to vertices of varying radii.
gplot.arrow提供了一个有用的扩展segments和arrows精细的控制时,需要对显示的结果。 (结果也更好看。)请注意,边缘弯曲是二次,curve提供的最大水平偏差的边缘(左手)。头/尾偏移用于调整结束,启动/点的边缘,相对于基线的坐标,这些都是有用的功能,如gplot,这就需要绘制边事件不同半径的顶点。
值----------Value----------
None.
无。
(作者)----------Author(s)----------
Carter T. Butts <a href="mailto:buttsc@uci.edu">buttsc@uci.edu</a>
参见----------See Also----------
gplot, gplot.loop, polygon
gplot,gplot.loop,polygon
实例----------Examples----------
#Plot two points[积两分]
plot(1:2,1:2)
#Add an edge[边缘]
gplot.arrow(1,1,2,2,width=0.01,col="red",border="black")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|