Well, after installing the rgl package and experimenting a bit, I got it to work.
Here’s the code:
plot3d(cos(x), sin(y), z, col=”red”, size=3)
I then rotated it into a good view. As my Latin teacher used to say, that’s all there is to it!
Next up (at some point): an animation of a spring.