from: coordinates (x,y) of the point from which to draw arrow.
to: coordinates (x,y) of the point to which to draw arrow.
lwd: line width.
lty: line type.
lcol: line color.
arr.col: arrowhead color.
arr.pos: relative position of arrowhead.
curve: relative size of curve (fraction of points distance) - see details.
dr: size of segments, in radians, to draw ellipse (decrease for smoother).
endhead: if TRUE: the arrow line stops at the arrowhead; default = FALSE.
segment: if not c(0,1): then the arrow line will cover only part of the requested path, e.g. if segment = c(0.2,0.8), it will start 0.2 from from and till 0.8.
...: arguments passed to function Arrows.
Returns
default: coordinates (x,y) where arrowhead is drawn.
A curved arrow is drawn between two points '(from, to)'
The position of the arrowhead, is set with arr.pos, a value between 0(start point) and 1(endpoint)
The line curvature is set with curve which expresses the ellipse radius as a fraction of the distance between the two points. For instance, curve=0.5 will draw an ellepse with small radius half of a circle.
The type of the arrowhead is set with arr.type which can take the values:
"none" : skips the drawing of arrows.
"simple" : uses comparable R function arrows.
"triangle": uses filled triangle.
"curved" : draws arrowhead with curved edges.
"circle" : draws circular head.
"ellipse" : draws ellepsoid head.
"T" : draws T-shaped (blunt) head.
The size of the arrow head can be specified with the arguments arr.length and arr.width.
See Arrowhead from package shape for details on arrow head