cart2pol | R Documentation |
This function converts Cartesian coordinates (x, y) to polar coordinates (rho, theta).
cart2pol(x, y)
x |
A numeric vector representing the x-coordinates. |
y |
A numeric vector representing the y-coordinates. |
A matrix with two columns, where the first column is rho (the radial coordinate) and the second column is theta (the angular coordinate).
cart2pol(c(1, 2), c(2, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.