pos_polygon_y.Rd
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)#> [1] 1.0 0.5 -0.5 -1.0 -0.5 0.5ggcanvas() + 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))