Skip to contents

Comparison plot of phases of a coherency object

Usage

plot_sel_phases(
  obj,
  view,
  sel.period = NULL,
  sel.upper = NULL,
  sel.lower = NULL,
  ...
)

Arguments

obj

coherency object.

view

View object.

sel.period

a single number which determines the (closest available) Fourier period to be selected. Default: NULL.

sel.upper

a number to define an upper Fourier period (or the closest available) for the selection of a band of periods (effective if sel.period is NULL). Default: NULL.

sel.lower

a number to define a lower Fourier period (or the closest available) for the selection of a band of periods (effective if sel.period is NULL). Default: NULL.

...

passed to WaveletComp::wc.sel.phases().

Value

an object of class sel.phases.

Examples

r <- get_sample_recording()
rv <- get_raw_view(r, "Central", "", "Sitar")
pv <- get_processed_view(rv)
co <- analyze_coherency(pv, columns = c("Nose_x", "Nose_y"))
#> 
  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |======================================================================| 100%
plot_cross_spectrum(co, pv)

plot_sel_phases(co, pv, sel.period = 0.64)

plot_sel_phases(co, pv, sel.lower = 0.6, sel.upper = 0.8)