Description Usage Arguments Value Methods (by class) Author(s) Examples
View source: R/plot_timecourse.R
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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | plot_timecourse(data, ...)
## S3 method for class 'data.frame'
plot_timecourse(
data,
electrode = NULL,
time_lim = NULL,
facet,
add_CI = FALSE,
baseline = NULL,
colour = NULL,
color = NULL,
...
)
## S3 method for class 'eeg_evoked'
plot_timecourse(
data,
electrode = NULL,
time_lim = NULL,
facet,
add_CI = FALSE,
baseline = NULL,
colour = NULL,
color = NULL,
...
)
## S3 method for class 'eeg_ICA'
plot_timecourse(
data,
component = NULL,
time_lim = NULL,
facet,
add_CI = FALSE,
baseline = NULL,
colour = NULL,
color = NULL,
...
)
## S3 method for class 'eeg_epochs'
plot_timecourse(
data,
electrode = NULL,
time_lim = NULL,
facet,
add_CI = FALSE,
baseline = NULL,
colour = NULL,
color = NULL,
...
)
## S3 method for class 'eeg_stats'
plot_timecourse(data, time_lim = NULL, electrode = NULL, ...)
|
data |
EEG dataset. Should have multiple timepoints. |
... |
Other arguments passed to methods. |
electrode |
Electrode(s) to plot. |
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) |
facet |
Deprecated. Please use standard ggplot2 facetting functions. |
add_CI |
Add confidence intervals to the graph. Defaults to 95 percent between-subject CIs. |
baseline |
Character vector. Times to use as a baseline. Takes the mean over the specified period and subtracts. e.g. c(-.1,0) |
colour |
Variable to colour lines by. If no variable is passed, only one line is drawn. |
color |
Alias for colour. |
component |
name or number of ICA component to plot |
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_stats
: Plot timecourses from eeg_epochs
objects.
Matt Craddock, matt@mattcraddock.com
1 2 | plot_timecourse(demo_epochs, "A29")
plot_timecourse(demo_epochs, "A29", add_CI = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.