Description Usage Arguments Details Value Author(s) See Also Examples
Draws a 'smart' arrow between two points surrounded by a circle of known radius. The arrow is arc shaped and ends with an arrowhead.
1 2 3 4 |
A |
numeric vector: coordinates of point A. |
B |
numeric vector: coordinatess of point B. |
Ra |
numeric: Radius of circle A |
Rb |
numeric: Radius of circle B |
ClegA |
character: label of circle A |
ClegB |
character: label of circle B |
width |
numeric: width of the arrow |
col |
color to fill the arrow. See |
ccol |
color to fill the circle. See |
density |
numeric: density of shading lines per inch (default=NULL). See |
angle |
numeric: angle of shading lines in radians (default = 0). See |
marge |
numeric: Angular distance between each circle and the corresponding end of the arrow (default = 1.3). |
debord |
numeric: overflow of the arrowhead relatively to its body. (Default = 1.4) |
plot |
logical: to draw a first arrow on a new plot.(Default = FALSE) |
trace |
logical: if TRUE (default) the arrow is drawn, else it is simply calculated. |
SmartArrow can work both as a high level and a low level function, depending on the value of the argument plot
.
Used in flux
. Not supposed to be used directly by the user.
An object of class smartarrow
having attributes:
arrow |
The polygon representing the arrow. |
bg |
Color of background |
A |
Coordinates of point A |
B |
Coordinates of point B |
Ra |
Radius of circle A |
Rb |
Radius of circle B |
left |
The most extreme left point of the set circles-arrows. |
right |
The most extreme right point of this set |
up |
The most extreme high point. |
down |
The most extreme low point |
drawcircles |
boolean : draw the circles or not. |
Jean-Sebastien Pierre
Jean-sebastien.pierre@univ-rennes1.fr
flux
, polygon
,symbols
arrows
~ for simple arrows
1 2 3 4 | # For a quick illustration
smartArrow(plot=TRUE)
# an arrow from a randomly drawn point on [0,2]x[0,2]
smartArrow(B=runif(2,0,2),Rb=runif(1,0,0.5),ClegB="C")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.