It's a bit of a hack on two displaced red planes, one to show the top and the other the underside. With a 10 meter grey plane at 0,0,0.
You can add what ever you like inside the node called 'Cosine Generator'. As Richard says by adding two at the end of the cosine calculation, that will indeed raise the red line above the X axis. You could just plug a PF in to the Main Input at the bottom to see how its colour displaces the red plane too.