getLinesWithArrow: Gets the lines for an arrow

Description Usage Arguments Value

View source: R/bezier_private_functions.R

Description

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.

Usage

1
getLinesWithArrow(bp, arrow, end_points, width, default.units, align_2_axis)

Arguments

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 unit

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.

Value

A list with left and right elements indicating the two lines


raredd/Gmisc0 documentation built on May 27, 2019, 2:02 a.m.