lcars_elbow | R Documentation |
Draw a, LCARS elbow polygon. This is a 90-degree rounded corner bend for top left, top right, bottom right and bottom left LCARS corner panels.
lcars_elbow(
xmin,
xmax,
ymin,
ymax,
corner,
width,
height,
ro = width/2,
ri = height/2,
n = 20,
color = "atomic-tangerine",
draw = TRUE
)
xmin |
numeric, scalar left x position. |
xmax |
numeric, scalar right x position. |
ymin |
numeric, scalar bottom y position. |
ymax |
numeric, scalar top y position. |
corner |
integer 1:4 or character: |
width |
numeric, the width of the vertical segment of the bend. |
height |
numeric, the height of the horizontal segment of the bend. |
ro |
radius of the outer rounded corner. |
ri |
radius of the inner rounded corner. |
n |
number of points to define the curve of the inner radial quarter circle. The number of points then used to define the outer curve and extensions of the segments are scaled respectively based on this. |
color |
ignored if |
draw |
draw the corner. Return values if |
draws a polygon
plot(0:1, 0:1)
lcars_elbow(0.1, 0.9, 0.6, 0.9, "tl", 0.2, 0.05)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.