pos_polygon_y: Create vector for y that, with x will, form a polygon pattern

View source: R/pos_polygon_y.R

pos_polygon_yR Documentation

Create vector for y that, with x will, form a polygon pattern

Description

Create vector for y that, with x will, form a polygon pattern

Usage

pos_polygon_y(y0 = 0, n = 5, radius = 1, rotation = -0.5)

Arguments

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

Examples

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))

EvaMaeRey/ggstamp documentation built on June 30, 2022, 11 p.m.