Data frame of positions for x and y

pos_wrap(x0 = 0, y0 = 0, n = 5, ncol = 3, width = 1, height = width)

Arguments

x0

numeric for x starting point for positioner

y0

numeric for y starting point for positioner

n

number of positions

ncol

number of columns before wrap

Value

Examples

pos_wrap()
#> x0 y0 #> 1 0 0 #> 2 1 0 #> 3 2 0 #> 4 0 -1 #> 5 1 -1
pos_wrap(n = 7, ncol = 2)
#> x0 y0 #> 1 0 0 #> 2 1 0 #> 3 0 -1 #> 4 1 -1 #> 5 0 -2 #> 6 1 -2 #> 7 0 -3