Internal function converting x-y do distance-angle.
Usage
polarize(data, xyratio, xorigin = 0, yorigin = 0)
Arguments
- data
Matrix or data frame with 2 numeric columns representing x and y.
- xyratio
Single number indicating unit ratio in x vs y direction.
- xorigin, yorigin
Numbers indicating center of polarization.
Value
2-column matrix of distances and angles.