iview(eeg)
iview(eeg, zoom=20) # show signal in 20-second fragmentsNeuroAnalyzer tutorials: Interactive plots
For interactive plots, GTK and Cairo are required (all necessary libraries should be installed automatically).
Viewing
iview() is a multi-tool for viewing and editing continuous and epoched signals:
(!) Default zoom value is 10 seconds.
(!) Place the mouse cursor over the plot and use the mouse wheel to scroll channels up and down.
(!) Shift + mouse wheel scrolls the signal by one second.
(!) Ctrl + mouse wheel scrolls the signal by one segment (default is 10 seconds).
(!) Left click on the channel label shows its details.
(!) Right click on the channel label marks the channel as bad.
(!) Right click on the - button to go to the start of the signal.
(!) Right click on the + button to go to the end of the signal.
Keyboard shortcuts:
Ctrl + b: toggle butterfly plotCtrl + m: toggle mean plotHome: go to the signal startEnd: go to the signal endCtrl + ,: go back by 1 secondsCtrl + .: go forward by 1 secondsAlt + ,: go back byzoomsecondsAlt + .: go forward byzoomsecondsPage Up: slide channels upPage Down: slide channels downAlt + m: toggle monochromatic modeAlt + s: toggle scales[: zoom in]: zoom outCtrl + h: show keyboard shortcutsCtrl + q: close
Butterfly plot:
Mean plot:
(!) Epoched signal should be viewed using iview_ep(), while continuous signal should be viewed using iview(). The meta-function iview() detects type of the signal and chooses appropriate function.
For epoched signal the keyboard shortcuts are:
Ctrl + b: toggle butterfly plotCtrl + m: toggle mean plotHome: go to the first epochEnd: go to the last epochCtrl + ,: previous epochCtrl + .: next epochPage Up: slide channels upPage Down: slide channels downAlt + m: toggle monochromatic modeAlt + s: toggle scalesCtrl + h: show keyboard shortcutsCtrl + q: close
(!) Shift + mouse wheel scrolls the signal by one epoch.
(!) Left click on the channel label will show its details.
(!) Right click on the channel label will mark the channel in the current epoch as bad.
(!) Right click on the - button to go to the first epoch.
(!) Right click on the + button to go to the last epoch.
To view one channel at a time, use: iview(eeg, mch=false)
Editing
To interactively edit the signal:
iview(eeg)(!) Epoched signal should be edited using iview_ep(), while continuous signal should be edited using iview().
(!) Place the first marker by clicking with the left mouse button and the second marker with the right mouse button or use time segment entry boxes.
Keyboard shortcuts:
Ctrl + Enter: return current time segmentCtrl + d: delete time segmentCtrl + s: toggle snapping
(!) By default markers are snapped to time points at the closest quarter (0.25, 0.5, 0.75 or 1.0) of a second; to turn it off, use snap=false option or press Ctrl + s while editing.
To edit the epoched signal interactively:
iview_ep(eeg)Keyboard shortcuts:
Ctrl + d: delete current epoch
Comparing signals
To compare two signals, e.g. before and after filtering:
iview(eeg1, eeg2)Keyboard shortcuts:
Home: go to the signal startEnd: go to the signal endCtrl + ,: go back by 1 secondsCtrl + .: go forward by 1 secondsAlt + ,: go back byzoomsecondsAlt + .: go forward byzoomsecondsPage Up: slide channels upPage Down: slide channels downAlt + s: toggle scales[: zoom in]: zoom outCtrl + h: show keyboard shortcutsCtrl + q: close
For epoched signal the keyboard shortcuts are:
Home: go to the first epochEnd: go to the last epochCtrl + ,: previous epochCtrl + .: next epochPage Up: slide channels upPage Down: slide channels downAlt + s: toggle scalesCtrl + h: show keyboard shortcutsCtrl + q: close
Viewing components
iview() can also be used to preview embedded or external components:
iview(eeg, ic)Viewing plots
Each plot object may be opened using an interactive viewer:
p = NeuroAnalyzer.plot(eeg, ch=["Fp1", "Fp2", "F3", "F4"], seg=(10, 20))
iview(p)Available shortcuts:
Ctrl + s: save as PNG fileCtrl + q: close
iview() may also be used to open PNG files:
iview("example.png")ipsd()
PSD may be plotted using interactive plot:
ipsd(eeg, ch="eeg")For epoched signal:
ipsd_ep(e10, ch="eeg")Keyboard shortcuts:
Home: go to the first epochEnd: go to the last epochCtrl + ,: previous epochCtrl + .: next epoch[: zoom in]: zoom outCtrl + s: save as PNGCtrl + h: show keyboard shortcutsCtrl + q: close
For continuous wavelet transformation, custom wavelet formula may be entered in the field (default is Morlet(2π), β=32, Q=128). Please refer to the documentation of ContinuousWavelets.jl to see the list of available wavelet families and parameters.
(!) Shift + mouse wheel scrolls the signal by one second.
(!) Ctrl + mouse wheel scrolls the signal by one segment (default is 10 seconds).
ispectrogram()
Spectrogram may be plotted using interactive plot:
ispectrogram(eeg, ch="eeg")Keyboard shortcuts:
Home: go to the signal startEnd: go to the signal endCtrl + ,: go back by 1 secondsCtrl + .: go forward by 1 secondsAlt + ,: go back byzoomsecondsAlt + .: go forward byzoomseconds[: zoom in]: zoom outCtrl + s: save as PNGCtrl + h: show keyboard shortcutsCtrl + q: close
For epoched signal:
ispectrogram_ep(e10, ch="Fp1")Keyboard shortcuts:
Home: go to the first epochEnd: go to the last epochCtrl + ,: previous epochCtrl + .: next epoch[: zoom in]: zoom outCtrl + s: save as PNGCtrl + h: show keyboard shortcutsCtrl + q: close
For continuous wavelet transformation, custom wavelet formula may be entered in the field (default is Morlet(2π), β=32, Q=128). Please refer to the documentation of DSP.jl to see the list of available wavelet families and parameters.
(!) Shift + mouse wheel scrolls the signal by one second.
(!) Ctrl + mouse wheel scrolls the signal by one segment (default is 10 seconds).
itopo()
To preview interactively topographical plots, use:
itopo(eeg, ch="eeg")Available shortcuts:
Keyboard shortcuts:
Ctrl + s: save as PNGCtrl + h: show keyboard shortcutsCtrl + q: close
(!) Segment defines time in seconds.
Epoched signal:
itopo_ep(e10, ch="eeg")MEG:
itopo(meg, ch="mag")