get_scalpmap | R Documentation |
Calculate and return an interpolated scalpmap from a data.frame
or
eeg_epochs
object. This provides the basis for a raster plot, as used to
create topographical plots.
get_scalpmap(data, ...) ## S3 method for class 'data.frame' get_scalpmap( data, method = "biharmonic", grid_res = 100, interp_limit = "skirt", quantity = "amplitude", facets = NULL, r = 95, k = -1, ... ) ## S3 method for class 'eeg_epochs' get_scalpmap( data, method = "biharmonic", grid_res = 100, interp_limit = "skirt", quantity = "amplitude", facets = NULL, r = 95, ... )
data |
An object of class 'data.frame' |
... |
Other arguments |
method |
"biharmonic" or "gam" smooth |
grid_res |
Grid resolution |
interp_limit |
Interpolate up to the "head" or add a "skirt" |
quantity |
Quantity to be plotted. Defaults to "amplitude". |
facets |
Any facets you plan to use |
r |
Size of headshape |
k |
Degrees of freedom used for spline when using |
A tibble
with the columns x
, y
, fill
data.frame
: Get scalpmap from a data.frame
eeg_epochs
: Get scalpmap from an eeg_epochs
object.
head(get_scalpmap(demo_epochs))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.