First, press "Draw" button, or "+" button. The applet plots x-coordinate of the rotating point on the unit circle. Then press "Rotate" button to see the graph of cos x.