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

pos_honeycomb_x(x0 = 0, n = 5, ncol = 3, width = 2 * sqrt(0.75))

Arguments

x0

numeric x start position

n

number of positions

ncol

number of columns before wrap, default is 3

width

numeric, width between positions

Value

Examples

pos_honeycomb_x()
#> [1] 0.0000000 1.7320508 3.4641016 0.8660254 2.5980762
pos_honeycomb_x(n = 10, x0 = 5, ncol = 2)
#> [1] 5.000000 6.732051 5.866025 7.598076 5.000000 6.732051 5.866025 7.598076 #> [9] 5.000000 6.732051