Description Usage Arguments Value See Also Examples
Calculate the path of a shape given supplied vertices and draw to screen.
1 | draw_shape(mat, cycle = TRUE, n = 30, text = "x", ...)
|
mat |
an Nx2 matrix of |
cycle |
logical value determining whether to the first and last coordinates |
n |
number of points along each edge to calculate |
text |
character value drawn at coordinate |
... |
parameters that are passed to |
NULL
Other drawing functions:
box_at(),
draw_arc(),
draw_bezier(),
draw_circle(),
draw_ellipse(),
draw_fn(),
draw_lerp(),
draw_path(),
draw_ray(),
draw_rect(),
fill_circle(),
fill_ellipse(),
fill_rect(),
fill_shape(),
grid_at(),
grid_mat(),
hline_at(),
hline(),
vline_at(),
vline()
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.