View source: R/pos_polygon_y.R
pos_polygon_y | R Documentation |
Create vector for y that, with x will, form a polygon pattern
pos_polygon_y(y0 = 0, n = 5, radius = 1, rotation = -0.5)
y0 |
numeric y center of shape, defaults to 0 |
radius |
a numeric value, the distance between x0 and y0 and the vertices |
rotation |
numeric indicating how much polygon should be turned from first vertex along positive horizontal |
pos_polygon_y(n = 6) ggcanvas() + stamp_label(label = "hello", x = pos_polygon_x(n = 5), y = pos_polygon_y(n = 5)) + stamp_point(x = pos_polygon_x(n = 5, rot = 0), y = pos_polygon_y(n = 5, rot = 0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.