circle_transform | R Documentation |
The helper functions deg2rad
and rad2deg
should add
convenience in transforming data from degrees to radians and from radians to
degrees.
deg2rad(deg)
rad2deg(rad)
deg |
A numeric vector of values in degrees. |
rad |
A numeric vector of values in radians. |
A numeric vector of the same length as deg
or rad
.
degrees <- runif(100, min = 0, max = 360)
radians <- deg2rad(degrees)
degrees_again <- rad2deg(radians)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.