NeuroAnalyzer tutorials: Interactive plots

For interactive plots, GTK and Cairo are required (all necessary libraries should be installed automatically).

iview()

iview() is a simple viewer for continuous and epoched signals:

iview(eeg)
iview(eeg)
iview(eeg, zoom=20) # show signal in 20-second fragments

(!) Default zoom value is 5 seconds.

(!) Up to 10 channels are displayed.

(!) Place the mouse cursor over the plot and use the mouse wheel to scroll channels up and down.

Keyboard shortcuts:

(!) Epoched signal should be viewed using iview_ep(), while continuous signal should be viewed using iview_cont(). The meta-function iview() detects type of the signal and chooses appropriate function.

For epoched signal the keyboard shortcuts are:

`iview()`` can also be used to preview embedded or external components and to compare two signals:

iview(eeg1, eeg2)
iview(eeg, ic, c_idx=1:19)

iedit()

To interactively edit the signal:

iedit(eeg)

To preview and edit the continuous signal:

iedit_cont(eeg, ch=1:19)
iedit_cont(eeg, mono=false, zoom=20)

(!) Epoched signal should be edited using iedit_ep(), while continuous signal should be edited using iedit_cont(). The meta-function iedit() detects type of the signal and chooses appropriate function.

(!) Segment markers are placed by clicking with left mouse button (from) and right mouse button (to).

(!) Default zoom value is 5 seconds.

Keyboard shortcuts:

(!) by default markers are snapped to time points at the closest quarter (0.25, 0.5, 0.75 or 1.0); to turn it off, use snap=false option or press ctrl-\ while editing

To edit the epoched signal interactively:

iedit(eeg)
iedit_seg(eeg)

Keyboard shortcuts:

iplot()

Signal amplitude may also be plotted using interactive plot:

iplot(eeg)
iplot_ep(e10)

(!) Epoched signal should be previewed using iplot_ep(), while continuous signal should be edited using iplot_cont(). The meta-function iplot() detects type of the signal and chooses appropriate function.

Keyboard shortcuts:

Keyboard shortcuts:

(!) Default zoom value is 5 seconds.

(!) To restore default title or axis labels, enter default into appropriate field(s).

To compare two signals, e.g. before and after filtering

iplot(eeg1, eeg2)

ipsd()

PSD may be plotted using interactive plot:

ipsd(eeg)
ipsd_ep(e10)

(!) Keyboard shortcuts are the same as for iplot_cont() and iplot_ep().

ispectrogram()

Spectrogram may be plotted using interactive plot:

ispectrogram(eeg)
ispectrogram_ep(e10)

(!) Keyboard shortcuts are the same as for iplot_cont() and iplot_ep().

For continuous wavelet transformation, custom wavelet formula may be entered in the field (default is Morlet(2π), β=1). Please refer to the documentation of DSP.jl to see the list of available wavelet families and parameters.

iview_plot()

Each plot object may be opened using an interactive viewer:

p = plot(eeg, channel=1:4, segment=(10, 20))
iview_plot(p)

Available shortcuts:

iview_plot() may also be used to open PNG files:

iview_plot("images/eeg_complex1.png")

itopo()

To preview interactively topographical plots, use:

itopo(eeg, seg=(0.1, 0.25))

Available shortcuts:

(!) Segment defines time in seconds.

(!) To plot topographical map in a single time point, e.g. at 0.1 second:

itopo(eeg, seg=(0.1, 0.1))

(!) Time segments can be interactively generated using:

iselect_ts(eeg)

Output:

(31.0, 32.0)

Available shortcuts: