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

pos_honeycomb_y(y0 = 0, n = 5, ncol = 3, height = 1.5)

Arguments

y0

numeric y start position

n

number of positions

ncol

number of columns before wrap, default is 3

height

numeric, height between positions

Value

Examples

pos_honeycomb_y()
#> [1] 0.0 0.0 0.0 -1.5 -1.5
ggcanvas() + stamp_polygon(x0 = pos_honeycomb_x(), y0 = pos_honeycomb_y())