plotComplex
is a workhorse function called by
plotButterfly
and plotMap
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | plotComplex(
dat,
sig = NULL,
topo_time = NULL,
chan_pos = NULL,
subset = list(),
plot_curves = TRUE,
pcrit = 0.05,
aspect_ratio = 0.5,
scalp_ratio = 0.5,
ampl_range = NULL,
map_marker_colour = "red",
map_marker_shape = 16,
map_marker_size = 1,
ggplot_theme = theme_ndys,
...
)
|
dat |
the array of ERP curves which must have at least 'time' and/or 'chan' dimensions |
sig |
[optional] a corresponding array to |
topo_time |
[optional] an object which describes the time points at which the scalp topographies should be plotted. Can be a simple atomic vector or a data.frame if the time points are not identical across the faceting dimension(s). |
chan_pos |
a data.frame of channel positions. Obligatory if
|
subset |
a named list to subset the input arrays; see
|
pcrit |
the level of alpha to highlight significant effects |
aspect_ratio |
the ratio of |
scalp_ratio |
the ratio of the diameter of the scalp and the vertical range of the ERP curves on the figure |
ampl_range |
the range of amplitudes to plot. If |
map_marker_colour, map_marker_shape, map_marker_size |
the colour, shape, and size of the marker used to mark the exact time points of the maps |
ggplot_theme |
a function which produces a ggplot theme (default: theme_ndys) |
... |
additional arguments passed to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.