xy_to_polar | R Documentation |
Convert data coordinates to polar coordinates
xy_to_polar(x, y, track_index = current_track_index(), flip = TRUE)
x |
X-locations of the data points. |
y |
Y-locations of the data points. |
track_index |
Index of the track. |
flip |
If it is FALSE, it returns theta for the original spiral (before flipping). |
Note different settings of flip
and reverse
in spiral_initialize
affect the conversion.
A data frame with two columns: theta (in radians) and r (the radius).
# There is no example NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.