cart2jpolar: convert from Cartesian coordinate to polar coordinates for...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/cart2jpolar.R

Description

converts from (x,y) in degrees to polar coordinates. This is a necessary step to compute average fiber paths as a function of their angle of incidence in the optic nerve head with the Jansonius map

Usage

1

Arguments

xy

Visual field location in Cartesian coordinates

Details

Input xy needs to be a data frame. It returns a data frame with the radial and angular coordinates

Value

Data frame with the radial and angular coordinates

Author(s)

Ivan Marin-Franch

See Also

jpolar2cart

Examples

1
  cart2jpolar( data.frame( x = c( 0, 10 ), y = c( 0, 10 ) ) )

Example output

        r      psi
1 15.0000 180.0000
2 10.3929 118.7571

visualFields documentation built on June 17, 2021, 5:06 p.m.