xy_to_polar.Rd
Convert data coordinates to polar coordinates
xy_to_polar(x, y, track_index = current_track_index(), flip = TRUE)
X-locations of the data points.
Y-locations of the data points.
Index of the track.
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
#> NULL