plot_electrodes: Plot electrode locations

View source: R/channel_management.R

plot_electrodesR Documentation

Plot electrode locations

Description

Produces either a 2D plot of the electrode locations or an interactive plot of electrode locations in 3D space.

Usage

plot_electrodes(data, interact = FALSE)

## Default S3 method:
plot_electrodes(data, interact = FALSE)

## S3 method for class 'eeg_data'
plot_electrodes(data, interact = FALSE)

## S3 method for class 'eeg_tfr'
plot_electrodes(data, interact = FALSE)

Arguments

data

Data with associated electrode locations to be plotted.

interact

Choose 2D cartesian layout, or, if set to TRUE, an interactive 3D plot of electrode locations. Defaults to FALSE.

Value

A ggplot or plotly figure showing the locations of the electrodes

Methods (by class)

  • default: generic plot electrodes function

  • eeg_data: Plot electrodes associated with an eeg_data object.

  • eeg_tfr: Plot electrodes associated with an eeg_data object.

Author(s)

Matt Craddock matt@mattcraddock.com

Examples


plot_electrodes(demo_epochs)


neuroconductor/eegUtils documentation built on Feb. 3, 2023, 5:33 p.m.