Description Usage Arguments Value Methods (by class) Author(s)
View source: R/plot_timecourse.R
Typically event-related potentials/fields, but could also be timecourses from frequency analyses for single frequencies. Output is a ggplot2 object. CIs not possible.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | plot_butterfly(data, ...)
## Default S3 method:
plot_butterfly(data, time_lim = NULL, group = NULL,
facet = NULL, baseline = NULL, colourmap = NULL, legend = TRUE,
continuous = FALSE, browse_mode = FALSE, ...)
## S3 method for class 'eeg_evoked'
plot_butterfly(data, time_lim = NULL,
group = NULL, facet = NULL, baseline = NULL, colourmap = NULL,
legend = TRUE, continuous = FALSE, browse_mode = FALSE, ...)
## S3 method for class 'eeg_stats'
plot_butterfly(data, time_lim = NULL, group = NULL,
facet = NULL, baseline = NULL, colourmap = NULL, legend = TRUE,
continuous = FALSE, browse_mode = FALSE, ...)
## S3 method for class 'eeg_data'
plot_butterfly(data, time_lim = NULL,
baseline = NULL, legend = TRUE, browse_mode = FALSE, ...)
## S3 method for class 'eeg_epochs'
plot_butterfly(data, time_lim = NULL,
baseline = NULL, legend = TRUE, browse_mode = FALSE, ...)
|
data |
EEG dataset. Should have multiple timepoints. |
... |
Other parameters passed to plot_butterfly |
time_lim |
Character vector. Numbers in whatever time unit is used specifying beginning and end of time-range to plot. e.g. c(-.1,.3) |
group |
Group lines by a specificed grouping variable. |
facet |
Create multiple plots for a specified grouping variable. |
baseline |
Character vector. Times to use as a baseline. Takes the mean over the specified period and subtracts. e.g. c(-.1, 0) |
colourmap |
Attempt to plot using a different colourmap (from RColorBrewer). (Not yet implemented) |
legend |
Plot legend or not. |
continuous |
Is the data continuous or not (I.e. epoched) |
browse_mode |
Custom theme for use with browse_data. |
ggplot2 object showing ERPs for all electrodes overlaid on a single plot.
default
: Default 'plot_butterfly' method for data.frames, eeg_data
eeg_evoked
: Plot butterfly for eeg_evoked
objects
eeg_stats
: Butterfly plot for EEG statistics
eeg_data
: Create butterfly plot for eeg_data
objects
eeg_epochs
: Create butterfly plot for eeg_epochs
objects
Matt Craddock, matt@mattcraddock.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.