Description Usage Arguments See Also Examples
complexplot2dview
plots the scalp topographies of different groups or
conditions by calling plot2dview
on a list of vectors or
matrices
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
dat |
a list of numeric vectors or matrices, which can be plotted by
|
ch_pos |
a data.frame of electrode positions,
see |
timepoint |
integer; the timepoint at which the scalp distributions are compared. Can be a vector referring to the timepoints of each topomap. |
datgrid |
arrangement of the grid (number of rows X columns) |
layout_matrix, heights, widths |
arguments to be passed to
|
title_row, title_col |
character vectors of the titles of rows and
columns, respectively. If NULL and dat has dimnames attribute,
|
title_map |
character vector; the titles of the individual scalp maps.
if NULL and |
title_main |
character; the title of the plot (default: the timepoint(s)) |
plot_bar |
logical; should a colour bar be plotted below the maps (default: TRUE) |
ampl_range |
numeric vector of the amplitude range. If not provided, the range is computed from the input data. |
gfp |
a list of Global Field Power data along the whole epoch |
... |
additional arguments to be passed to |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # example dataset
data(erps)
chan_pos <- attr(erps, "chan") # channel positions
# plot the grand average scalp distribution at 180 ms, for each stimulus
# class and pairtye condition; display also the GFP curves of the
# whole epochs
timepoint <- 180
plotdat <- splitArray(avgDims(erps, "id"),
c("stimclass", "pairtype"),
drop = TRUE)
gfpdat <- lapply(plotdat, compGfp)
plotdat[] <- lapply(plotdat, subsetArray,
list(time = as.character(timepoint)))
complexplot2dview(plotdat,
chan_pos, timepoint,
gfp = gfpdat, plot_ch = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.