View source: R/ggplot2-extensions.R
stat_scalpmap | R Documentation |
stat_scalpmap
creates an interpolated surface for an irregular set of
x-y coordinates, as is typically required for a topographical EEG plot. Since
the surface should be approximately round, the function attempts to blank out
portions of the surface that lay outside the area within the electrodes.
geom_head()
adds a headshape to a plot.
geom_mask()
adds a masking ring to smooth the edges of a scalp map
generated by stat_scalpmap()
, to give it a circular appearance.
geom_ears
simply draws a pair of ears attached to the head shape.
geom_channels
adds either points or text labels at channel locations.
This is a convenience function to prevent overplotting when the input data
contains many rows of data.
stat_scalpmap( mapping = NULL, data = NULL, position = "identity", na.rm = FALSE, show.legend = NA, inherit.aes = TRUE, grid_res = 200, interpolate = FALSE, interp_limit = c("skirt", "head"), method = "biharmonic", r = NULL, ... ) geom_head( mapping = NULL, data = NULL, show.legend = NA, na.rm = TRUE, inherit.aes = TRUE, interp_limit = "skirt", r = 95, ... ) geom_mask( mapping = NULL, data = NULL, show.legend = NA, na.rm = FALSE, colour = "white", size = rel(5), r = 95, interp_limit = "skirt", ... ) geom_ears( mapping = NULL, data = NULL, show.legend = NA, na.rm = FALSE, r = 95, ... ) geom_channels( mapping = NULL, data = NULL, geom = "point", show.legend = NA, inherit.aes = TRUE, na.rm = TRUE, ... )
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
grid_res |
Resolution of the interpolation grid. (Defaults to 200 points). |
interpolate |
If |
interp_limit |
Topoplot with a "skirt" or inside the "head". |
method |
"biharmonic" or "gam" |
r |
Radius of head |
... |
Other arguments passed on to |
colour |
For |
size |
For |
geom |
"point" for points or "text" for labels. Default is "point". |
Matt Craddock matt@mattcraddock.com
Other topoplot functions:
geom_topo()
,
stat_scalpcontours()
Other topoplot functions:
geom_topo()
,
stat_scalpcontours()
Other topoplot functions:
geom_topo()
,
stat_scalpcontours()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.