I am given the polar coordinates (r, 2sin(2t)) over [1, 10]. I need to plot this in R (the graph should look like a four leafed clover). So far, I have tried:
>t<-seq(1, 10, len=100)
>y<-2*sin(2*t)
>plot(t, y, type="n", xlab="x", ylab="y", main="Polar Graph")
>lines(t, y)
This code returns a graph of 2sin(2t), which just looks like a regular sin graph and is not what I am looking for. I am really not sure how to continue, as the only graphing experience I have with R is simple plots like the one above.
Any help would be greatly appreciated. Thanks!