shift_origin: Shift Origin of Angles

Description Usage Arguments Value Author(s) Examples

View source: R/shift_origin.R

Description

Shift the origin of the angles for visualization.

Usage

1
shift_origin(phase, origin)

Arguments

phase

A vector of angles (in radians).

origin

the new origin of the angles.

Value

A vector of angles shifted to the new origin.

Author(s)

Joyce Hsiao

Examples

1
2
3
4
5
6
7
# Make a vector of angles.
theta <- seq(0,2*pi, length.out=100)

# Shift the origin of theta to pi.
theta_shifted <- shift_origin(theta, origin = pi)

plot(x=theta, y = theta_shifted)

jhsiao999/peco documentation built on Nov. 21, 2020, 5:34 p.m.