Don't know R-code generating, so here is how to plot the figure entirelly in inkscape -click on the red rectangle, and set parametres as depicted. x=500*sin(t) y=200*(cos(t)+t/10)
coil spring free icon was designed by Lazur URH for icons Png and presented to its users.
Lazur URH
1/24/2018