I don't have any graphing software capable of plotting this, but it makes sense to me.
First a circle:
$$ x = r\cos\theta \\ y = r\sin\theta $$
Then a sine wave wrapped into a circle:
$$ x = (r+\cos\theta)\cos\theta\\ y = (r+\sin\theta)\sin\theta $$
And finally, add in the z-coordinate:
$$ z = \sin\theta $$
Is this correct? If not, what's wrong with it?
$$ x = (r+\cos\theta)\cos\theta = r\cos\theta + \cos^2\theta\\ y = (r+\sin\theta)\sin\theta = r\sin\theta + \sin^2\theta\\ z = \sin\theta $$



You need two radii to decribe a torus. Let's call them $a$ and $b$. Then the parametric equations of the torus are: $$x = (a + b\cos u)\cos v$$ $$y = (a + b\cos u)\sin v$$ $$z = b\sin u$$
Then, to get a helical curve, set $v = ku$, where $k << 1$.
Here's the result with $a=3$, $b=1$, $k=0.05$: