Description Usage Arguments Value
View source: R/bezier_private_functions.R
The lines are the upper and the lower lines that are later used to generate future polygon that will be used to generate the arrow. These lines are separated from the points by a defined width. The width is perpendicular to the lines angle at that particular point.
1 | getLinesWithArrow(bp, arrow, end_points, width, default.units, align_2_axis)
|
bp |
Bezier points that define the line. Based upon a bezier grob. |
arrow |
The arrow list. This should contain a x and y element to indicate the vector in relation to the 0,0 origo. The base element sets the arrow width while the length element gives the length of the arrow. |
end_points |
The end points of a line. This is a list with a start list(x, y, length) and a end list(x, y, length) as elements. |
width |
The width as a grid length |
default.units |
The default unit (see the grid package for available units) |
align_2_axis |
This indicates if the arrows origin should align it to an axis. Which is decided by which axis is the closes one. |
A list with left and right elements indicating the two lines
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.