I have some points that lie on the unit sphere in $\mathbb{R}^{n - 1}$, and I want to rotate them in $\mathbb{R}^n$ so that they lie on the plane defined by $\sum_{i=1}^n x_i = 0$, where $x_i$ are the coordinates of the points in $\mathbb{R}^n$.
My main question is how do I do this in $\mathbb{R}^n$, but at the moment, I can't even get it working in $\mathbb{R}^3$. Here is my $\mathbb{R}^3$ attempt:
$u_1 = (0, 0, 1)^T$ is unit normal to the $x-y$ plane. $u_2 = (1, 1, 1)^T$ is normal to $x + y + z = 0$. Define the angle of rotation $\theta$ by $\cos(\theta) = (u_1 \cdot u_2)/|u_2|$ and the axis of rotation $a$ by $a = (u_1 \times u_2)/|u_2|$. Then apply the rotation matrix $R$ given on wikipedia. This is essentially the answer given here.
I was expecting this rotation matrix to rotate one plane to another, then if I got the planes the wrong way around I would negate the angle. But I don't get either plane rotating to the other: $$ R\cdot(1, 1, 0)^T = (0.58, 0.58, -0.94)^T\\ R\cdot(1, -0.5, -0.5)^T = (0.56, -0.74, -0.52)^T. $$
Any help in 3 dimensions or $n$ dimensions very much appreciated.