phase.plot: Plot phases with arrows

Description Usage Arguments Note Author(s) Examples

View source: R/phase.plot.R

Description

Plot phases with arrows

Usage

1
2
phase.plot(x, y, phases, arrow.len = min(par()$pin[2]/30, par()$pin[1]/40),
  arrow.col = "black", arrow.lwd = arrow.len * 0.3)

Arguments

x

x-coordinates

y

y-coordinates

phases

phases

arrow.len

size of the arrows. Default is based on plotting region (min(par()$pin[2]/30,par()$pin[1]/40).

arrow.col

arrow line color. Default is black.

arrow.lwd

width/thickness of arrows. Default is arrow.len * 0.3.

Note

Arrows pointing to the right mean that x and y are in phase.

Arrows pointing to the left mean that x and y are in anti-phase.

Arrows pointing up mean that y leads x by π/2.

Arrows pointing down mean that x leads y by π/2.

Author(s)

Tarik C. Gouhier ([email protected])

Huidong Tian provided a much better implementation of the phase.plot function that allows for more accurate phase arrows.

Original code based on WTC MATLAB package written by Aslak Grinsted.

Examples

1
# Not run: phase.plot(x, y, phases)

biwavelet documentation built on May 29, 2017, 6:06 p.m.