annotate_head: Add a head shape to a ggplot

annotate_headR Documentation

Add a head shape to a ggplot

Description

Adds the outline of a head and nose to a ggplot.

Usage

annotate_head(size = 1.1, color = "black", stroke = 1)

Arguments

size

Size of the head

color

Color of the head

stroke

Line thickness

Value

A layer for a ggplot

See Also

Other plotting functions: annotate_electrodes(), annotate_events(), 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()

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