Description Usage Arguments Value Note
topoCoord
computes the topographic projection of the amplitudes at
the given peaks.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
dat |
array of ERP data |
peak_df |
data.frame of peaks (time and potentially other facetting variables) |
ch_pos |
data.frame of channel positions |
size_x |
the width of the topoplot in time units |
size_y |
the height of the topoplot in amplitude units |
shift_y |
the vertical center of the topoplot in amplitude units |
r |
radius of the channel positions if |
ampl_range |
numeric vector of length 2 containing the minimum and
maximum values. If NULL, it is computed from the data. Values outside the
|
resol |
an integer value; the resolution of the grid topographic map in horizontal and vertical direction (default: 30) |
resolcol |
integer value, the number of levels (resolution) for colouring (default: 101L) |
projection |
character value (default = "laea"). See http://www.remotesensing.org/geotiff/proj_list/ for common projections. |
projref |
projection reference (pole [default] or equator) |
origo |
a named character vector of lat and long coordinates of the origo |
... |
arguments passed to |
The function returns a named list of two data.table objects (topo and boundary).
This function is called by plotButterfly
and
plotMap
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.