In cartesian coordinates, a rotation around the z axis is represented as:
$$\left( \begin{array}{ccc} \cos\phi & \sin\phi & 0\\ -\sin\phi & \cos\phi & 0\\ 0&0&1 \end{array} \right)$$ What is the analogue in spherical coordinates?
EDIT My change of coordinates is:
$x=r \sin\theta\cos\phi$
$y=r \sin\theta\sin\phi$
$z=r \cos\theta$