In the first graph I used the equations; r=theta, r=a+bcostheta, r=a+bsintheta, r=acos(n*theta) and r=asin(n*theta). I added sliders so that I could make the flower bigger and smaller.
In the second graph I used the equations that are pictured next to the graph.