Description Usage Arguments Value Examples
phase_diff
calcultes the phase difference between two x coordinates
1 | phase_diff(x1, x2, lowlim = 0, highlim = 360)
|
x1, x2 |
x coordinates to calculate phase difference between |
lowlim, highlim |
maximum and minimum expected x values. Defaults apply to degrees in a circle |
Returns a vector of values (between -0.5 and 0.5) indicating the phase difference between two x coordinates
1 2 3 4 | x1 <- seq(0, 360, 360/4)
x2 <- 180
phase_diff(x1, x2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.