shift_origin {peco} | R Documentation

## Shift origin of the angles

### Description

Shift origin of the angles for visualization

### Usage

    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

    # 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)

[Package peco version 0.99.16 Index]