cap_options | R Documentation |
These functions construct various sorts of caps. They construct a matrix
that can be supplied as the shape
argument in gizmo_barcap()
.
cap_triangle()
cap_round(n = 100)
cap_arch(n = 100)
cap_ogee(n = 100)
cap_none()
n |
An |
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.
A <matrix[n, 2]>
with coordinates for points on the brackets.
cap_triangle()
: An equilateral triangle with n = 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.
plot(cap_arch(), type = 'l')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.