View source: R/angle_convert.R
deg2car | R Documentation |
Convert angle degrees to Cartesian coordinates x and y It is internally also taking care of the conversion from input angles as degrees to radians
deg2car(deg, r = 1)
deg |
a numeric vector of angle degrees |
r |
numeric, ray of the unitary circle |
a tibble with degrees, phi in radians, x and y
deg<- c(0, 30, 45, 60, 90, 180, 270, 360) deg2car(deg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.