Learn R Programming

visualFields (version 0.6.2)

cart2jpolar: convert from Cartesian coordinate to polar coordinates for use with the Jansonius map

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

cart2jpolar( xy )

Arguments

xy

Visual field location in Cartesian coordinates

Value

Data frame with the radial and angular coordinates

Details

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

See Also

jpolar2cart

Examples

Run this code
# NOT RUN {
  cart2jpolar( data.frame( x = c( 0, 10 ), y = c( 0, 10 ) ) )
# }

Run the code above in your browser using DataLab