cart2Polar: Calculate polar coordinates from cartesian coordinates

View source: R/plottingFunctions.R

cart2PolarR Documentation

Calculate polar coordinates from cartesian coordinates

Description

cart2Polar calculates polar coordinates from cartesian coordinates.

Usage

cart2Polar(x, y)

Arguments

x

numeric cartesian x coordinate

y

numeric cartesian y coordinate

Details

cart2Polar is employed to translate cartesian coordinates into polar coordinates especially in interactive shiny applications when using hovering and clicking features.

Value

cart2Polar returns a list of colar coordinates r and theta

Author(s)

Thomas Naake, thomasnaake@googlemail.com

Examples

x <- 1; y <- 1
cart2Polar(x, y)


tnaake/MetCirc documentation built on Nov. 3, 2024, 11:16 a.m.