xy_to_cartesian.Rd
Convert data coordinates to the canvas coordinates
xy_to_cartesian(x, y, track_index = current_track_index())
X-locations of the data points.
Y-locations of the data points.
Index of the track.
The canvas coordinates correspond to the "native" coordinates of the viewport where the graphics are to be drawn.
Note different settings of flip
and reverse
in spiral_initialize
affect the conversion.
A data frame with two columns: x and y.
# There is no example
NULL
#> NULL