Description Usage Arguments Details Value Author(s) See Also Examples

adds a circular arrow, from and to the same point

1 2 |

`pos ` |
2-valued vector with coordinates (x,y) of points *from and to* which to draw arrow. |

`lwd ` |
line width. |

`lty ` |
line type. |

`lcol ` |
line color. |

`arr.pos ` |
relative position of arrowhead. |

`path ` |
position of circle: R, L, U, D for right, left, up and down respectively. |

`curve ` |
relative size of curve (fraction of arrow length). |

`dr ` |
size of segments, in radians, to draw ellipse (decrease for smoother). |

`code ` |
how to put the arrowhead. |

`... ` |
arguments passed to function Arrows. |

draws a circular arrow from and to one point

The position of the arrowhead on the circle is set with `arr.pos`

,
a value between 0 (at start) and 1(at end of circle)

The type of the arrowhead is set with `arr.type`

which can take the
values:

"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

see `Arrowhead`

for details on arrow head.

coordinates (x,y) where arrowhead is drawn

Karline Soetaert <[email protected]>

`straightarrow`

, `segmentarrow`

,
`curvedarrow`

,
`bentarrow`

,`treearrow`

, `splitarrow`

,

`arrows`

: the comparable **R** function,

`Arrows`

: more complicated arrow function from package
shape.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ```
openplotmat(main = "selfarrow")
pos <- coordinates(3, mx = 0.05)
text(pos, LETTERS[1:3], cex = 2)
for (i in 1:3)
selfarrow(pos = pos[i, ], path = "R", arr.pos = 0.2,
curve = c(0.05, 0.1), lcol = "darkred")
for (i in 1:3)
selfarrow(pos = pos[i, ], path = "L", arr.pos = 0.7,
lcol = "darkblue", curve = c(0.05, 0.05))
for (i in 1:3)
selfarrow(pos = pos[i, ], path = "L", arr.pos = 0.5,
lcol = "darkgreen", code = i, arr.type = "triangle")
``` |

```
Loading required package: shape
```

diagram documentation built on Aug. 16, 2017, 5:04 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.