plot_timecourse: Plot 1-D timecourse data.

Description Usage Arguments Value Methods (by class) Author(s)

View source: R/plot_timecourse.R

Description

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.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
plot_timecourse(data, ...)

## S3 method for class 'data.frame'
plot_timecourse(data, electrode = NULL,
  time_lim = NULL, group = NULL, facet = NULL, add_CI = FALSE,
  baseline = NULL, colour = NULL, color = NULL, ...)

## S3 method for class 'eeg_evoked'
plot_timecourse(data, electrode = NULL,
  time_lim = NULL, group = NULL, facet = NULL, add_CI = FALSE,
  baseline = NULL, colour = NULL, color = NULL, ...)

## S3 method for class 'eeg_ICA'
plot_timecourse(data, component = NULL,
  time_lim = NULL, group = NULL, facet = NULL, add_CI = FALSE,
  baseline = NULL, colour = NULL, color = NULL, ...)

## S3 method for class 'eeg_epochs'
plot_timecourse(data, electrode = NULL,
  time_lim = NULL, group = NULL, facet = NULL, add_CI = FALSE,
  baseline = NULL, colour = NULL, color = NULL, ...)

Arguments

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)

group

(not yet implemented)

facet

Create multiple plots for a specified grouping variable.

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

Value

Returns a ggplot2 plot object

Methods (by class)

Author(s)

Matt Craddock, matt@mattcraddock.com


neuroconductor-devel-releases/eegUtils documentation built on May 5, 2020, 3:49 a.m.