Each function orders the numbers 1 through n, starting at index
i. The choice of function made in stat_alluvium
determines the order in which the other axes contribute to the sorting of
lodes within each index axis. After starting at i, the functions order
the remaining axes as follows:
zigzag: Zigzag outward from i
rightward: Increasing order
leftward: Decreasing order
rightleft: Proceed rightward from i to n, then
leftward to 1
leftright: Proceed leftward from i to 1, then rightward
to n
lode_zigzag(n, i) lode_rightward(n, i) lode_leftward(n, i) lode_rightleft(n, i) lode_leftright(n, i)
| n | Numeric, a positive integer |
|---|---|
| i | Numeric, a positive integer at most |