pol2cart | R Documentation |
pol2cart translate polar coordinates of angles (as degrees) and a distance = radius, into cartesian coordinates of x and y. The option of using arbitrary origin coordinates is included
pol2cart(angle, dist, xorig = 0, yorig = 0)
angle |
the angle in degrees, either a single number of a vector |
dist |
the length of the line or radius, a single number |
xorig |
the final xorigin |
yorig |
the final yorigin |
a matrix of 1 or more rows depending on length of angle
## Not run:
ans <- pol2cart(angle=seq(0,360,15),dist=20,xorig=30,yorig=30)
print(ans)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.