Description Usage Arguments Author(s) See Also
View source: R/ggplot2-extensions.R
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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | stat_scalpmap(
mapping = NULL,
data = NULL,
position = "identity",
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE,
grid_res = 300,
interpolate = FALSE,
interp_limit = "skirt",
method = "biharmonic",
...
)
geom_head(
mapping = NULL,
data = NULL,
show.legend = NA,
na.rm = TRUE,
inherit.aes = TRUE,
interp_limit = "skirt",
r = NULL,
...
)
geom_mask(
mapping = NULL,
data = NULL,
show.legend = NA,
na.rm = FALSE,
colour = "white",
size = rel(6.5),
scale_fac = 1.32,
...
)
geom_ears(mapping = NULL, data = NULL, show.legend = NA, na.rm = FALSE, ...)
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 100 points). |
interpolate |
If |
interp_limit |
Topoplot with a "skirt" or inside the "head". |
method |
"biharmonic" or "gam" |
... |
Other arguments passed on to |
r |
Radius of head |
colour |
For |
size |
For |
scale_fac |
The radius of the ring is determined from the front-most electrode's location by a scaling factor. Defaults to 1.32 * max(y). |
geom |
"point" for points or "text" for labels. Default is "point". |
Matt Craddock matt@mattcraddock.com
Other topoplot functions:
geom_topo()
Other topoplot functions:
geom_topo()
Other topoplot functions:
geom_topo()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.