annotate_electrodes: Adds the electrode labels to a head shape

annotate_electrodesR Documentation

Adds the electrode labels to a head shape

Description

Adds the electrode labels to a head shape

Usage

annotate_electrodes(.label = .key, ...)

Arguments

.label

Label name for the electrodes

...

other arguments to control the text

Value

A layer for a ggplot

See Also

Other plotting functions: annotate_events(), annotate_head(), eeg_downsample(), ggplot.eeg_lst(), plot.eeg_lst(), plot_components(), plot_in_layout(), plot_topo(), theme_eeguana()

Examples

library(ggplot2)
data_faces_ERPs %>%
  eeg_filter(between(as_time(.sample, .unit = "milliseconds"), 100, 200)) %>%
  eeg_group_by(condition) %>%
  eeg_summarize(across_ch(mean, na.rm = TRUE)) %>%
  plot_topo() +
  annotate_head(size = .9, color = "black", stroke = 1) +
  annotate_electrodes(color = "gray")

bnicenboim/eeguana documentation built on March 16, 2024, 7:21 a.m.