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 | 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). |
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 |
Other topoplot functions:
geom_topo()
,
stat_scalpmap()
Matt Craddock matt@mattcraddock.com