View source: R/summary_contour.R
stat_scalpcontours | R Documentation |
stat_scalpcontours
creates an interpolated surface for an irregular set of
x-y coordinates, as is typically required for a topographical EEG plot, and
then calculates contours.
stat_scalpcontours(
mapping = NULL,
data = NULL,
position = "identity",
na.rm = FALSE,
show.legend = FALSE,
inherit.aes = TRUE,
grid_res = 200,
interp_limit = c("skirt", "head"),
method = "biharmonic",
r = NULL,
bins = 6,
binwidth = NULL,
breaks = NULL,
...
)
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
position |
A position adjustment to use on the data for this layer. This
can be used in various ways, including to prevent overplotting and
improving the display. The
|
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). |
interp_limit |
Interpolate to the "skirt" or inside the "head". |
method |
"biharmonic" or "gam" smooth to create interpolated surface |
r |
Radius of interpolated surface |
bins |
Number of contour bins. Overridden by binwidth. |
binwidth |
The width of the contour bins. Overridden by breaks. |
breaks |
Numeric vector to set the contour breaks. Overrides binwidth and bins. By default, this is a vector of length ten with pretty() breaks. |
... |
Other arguments passed on to
|
Matt Craddock matt@mattcraddock.com
Other topoplot functions:
geom_topo()
,
stat_scalpmap()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.