Typically event-related potentials/fields, but could also be timecourses from frequency analyses for single frequencies. Averages over all submitted electrodes. Output is a ggplot2 object.
plot_timecourse(data, ...)
# S3 method for data.frame
plot_timecourse(
data,
electrode = NULL,
time_lim = NULL,
add_CI = FALSE,
baseline = NULL,
colour = NULL,
color = NULL,
mapping = NULL,
...
)
# S3 method for eeg_evoked
plot_timecourse(
data,
electrode = NULL,
time_lim = NULL,
add_CI = FALSE,
baseline = NULL,
colour = NULL,
color = NULL,
mapping = NULL,
...
)
# S3 method for eeg_ICA
plot_timecourse(
data,
component = NULL,
time_lim = NULL,
add_CI = FALSE,
baseline = NULL,
colour = NULL,
color = NULL,
mapping = NULL,
...
)
# S3 method for eeg_epochs
plot_timecourse(
data,
electrode = NULL,
time_lim = NULL,
add_CI = FALSE,
baseline = NULL,
colour = NULL,
color = NULL,
mapping = NULL,
...
)
# S3 method for eeg_group
plot_timecourse(
data,
electrode = NULL,
time_lim = NULL,
add_CI = FALSE,
baseline = NULL,
colour = NULL,
color = NULL,
mapping = NULL,
...
)
# S3 method for eeg_tfr
plot_timecourse(
data,
electrode = NULL,
time_lim = NULL,
add_CI = FALSE,
baseline = NULL,
colour = NULL,
color = NULL,
mapping = NULL,
freq_range = NULL,
type = "divide",
...
)
EEG dataset. Should have multiple timepoints.
Other arguments passed to methods.
Electrode(s) to plot.
Character vector. Numbers in whatever time unit is used specifying beginning and end of time-range to plot. e.g. c(-.1, .3)
Add confidence intervals to the graph. Defaults to 95 percent between-subject CIs.
Character vector. Times to use as a baseline. Takes the mean over the specified period and subtracts. e.g. c(-.1,0)
Variable to colour lines by. If no variable is passed, only one line is drawn.
Alias for colour.
A ggplot2 aes()
mapping.
name or number of ICA component to plot
Choose a specific frequency range to plot
Type of baseline correction to use for eeg_tfr
objects
Returns a ggplot2 plot object
data.frame
: Plot a data.frame timecourse
eeg_evoked
: plot eeg_evoked
timecourses
eeg_ICA
: Plot individual components from eeg_ICA
components
eeg_epochs
: Plot timecourses from eeg_epochs
objects.
eeg_group
: Plot timecourses from eeg_group
objects.
eeg_tfr
: Plot timecourses from eeg_tfr
objects.
plot_timecourse(demo_epochs, "A29")
plot_timecourse(demo_epochs, "A29", add_CI = TRUE)