mosaic: Create average waveform plots for each subject in a single,...

Description Usage Arguments Details Value Author(s) Examples

View source: R/Mosaic.R


mosaic generates multiple plots in a single window. Plots are average waveforms for each subject. Each plot shows all conditions present in the data frame.


mosaic(data, electrodes, cols = 5, rows = 5)



A data frame in the format returned from


A single value or concatenation of several values (to be averaged) indicating which electrodes to include in generating the plot. At this time, if the raw data files imported using do not have a header, you must include a capital "V" in front of the number and enclose each electrode in quotes. (For example, electrodes = "V78", or electrodes = c("V78", "V76").)


An integer defining the number of desired columns of plots. The default is 5.


An integer defining the number of desired rows of plots. The default is 5.


The default values for columns and rows (i.e., 5 and 5) and higher are best suited to the graphical parameters specified in the code. At this time, graphical parameters (e.g., tick marks and labels) do not scale with the number of rows and colums. As this feature is not intended to produce manuscript-ready plots, the option to explore your data with any number of rows and columns is available, but fewer rows and columns will yield crowded plots.

Single electrodes can be passed to the package functions, or several electrodes can be provided (i.e., when using dense arrays) and those electrodes will be averaged together as a single electrode.


A single window containing multiple plots (1 per subject)


Travis Moore


# Inspect average ERP waveforms for each subject
mosaic(ERPdata, electrodes = "V78", cols = 5, rows = 5)

erp.easy documentation built on May 2, 2019, 9:15 a.m.

Related to mosaic in erp.easy...