cap_options {legendry} | R Documentation |
Cap options
Description
These functions construct various sorts of caps. They construct a matrix
that can be supplied as the shape
argument in gizmo_barcap()
.
Usage
cap_triangle()
cap_round(n = 100)
cap_arch(n = 100)
cap_ogee(n = 100)
cap_none()
Arguments
n |
An |
Details
When designing custom cap shapes, the expectation is that the first point
starts at the (0, 0)
coordinate and the last point ends at the (0, 1)
coordinate. The first column follows the orthogonal direction of the bar
whereas the second column follows the direction of the bar.
Value
A <matrix[n, 2]>
with coordinates for points on the brackets.
Functions
-
cap_triangle()
: An equilateral triangle withn = 3
points. -
cap_round()
: A semicircle. -
cap_arch()
: Two circular arcs forming an equilateral Gothic arch. -
cap_ogee()
: Four circular arcs forming an 'ogee' arch. -
cap_none()
: No cap.
Examples
plot(cap_arch(), type = 'l')