How do I convert a 3-axis quaternion to a 1-axis x-y axis plane?

Ignore my question abut why they are called filters. I assume it is because they are reducing the 6 vars, 3 each for rotation and acceleration, to just 3 for yaw, roll, and pitch.