polar_transform: Rotate cartesian coordinates

Description Usage Arguments Value Examples

Description

polar_transform rotates cartesian coordinates about the origin at a given degree

Usage

1
polar_transform(data, rotation = 0, plots = TRUE)

Arguments

data

a dataframe containing cartesian coordinates labeled x and y

rotation

The desired value of rotation in degrees

plots

if plots = TRUE a plot showing both the original x, y data and the rotated data (in green) is printed. If plots = FALSE, a plot is not printed.

Value

A dataframe is printed to the console containing original cartesian (x, y) values and the new rotated (new.x, new.y) values. If plots = TRUE a plot showing both the original and new coordinates (colored green) is plotted

Examples

1
polar_transform(data = dataframe, rotation = 45, plots = TRUE)

jbrabazon13/quakr documentation built on May 21, 2019, 1:19 p.m.