polar(t, r, type="l",
col = "blue", grcol = "darkgrey", bxcol = "black",
main = "Polar Plot", add = FALSE, ...)
points
function.polar(theta,rho)
creates a polar coordinate plot of the angle
theta
versus the radius rho
. theta
is the angle
from the x-axis to the radius vector specified in radians; rho
is the length of the radius vector.t <- deg2rad(seq(0, 360, by = 2))
polar(t, cos(2*t), bxcol = "white", main = "Sine and Cosine")
polar(t, sin(2*t), col = "red", add = TRUE)
Run the code above in your browser using DataLab