和田 勇さんの別解として
\draw[line width=4pt, smooth,samples=100,domain=0:8] plot[parametric] function{2*cos((t))-cos((2*t)),2*sin((t))-sin((2*t))};
を
\draw[line width=4pt,samples=100,domain=0:360,variable=\t]plot({2*cos(\t)-cos(2*\t)},{2*sin(\t)-sin(2*\t)});
とすると -shell-escape も gnuplot も使わず描画できます。