Description Usage Arguments See Also Examples
View source: R/ggplot2-extensions.R
geom_topo()
creates a topographical plot as a ggplot2
object.
This function automatically combines a number of distinct geom_* and stat_*
functions to create a default topographical scalp map. Since geom_raster does
not allow unevenly spaced grids, the function creates an interpolated surface.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
stat |
The statistical transformation to use on the data for this layer, as a string. |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
show.legend |
logical. Should this layer be included in the legends?
|
na.rm |
If |
inherit.aes |
If |
interpolate |
If |
interp_limit |
Topoplot with a "skirt" or inside the "head". |
chan_markers |
Defaults to "point". Mark electrode positions with points or text. |
chan_size |
Size for channel markers, if any. |
head_size |
Size of the head shape. |
grid_res |
Smoothness of the interpolation grid. |
method |
"biharmonic" or ""gam". |
... |
Other arguments passed on to |
Other topoplot functions:
stat_scalpmap()
1 2 | library(ggplot2)
ggplot(demo_epochs, aes(x = x, y = y, fill = amplitude)) + geom_topo()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.