Convert a formula from z ~ x * y to y ~ x
xyz_to_xy(form)
A two-dimensional lattice formula.
Three-dimensional lattice formula.