topoplot(erpobj, startmsec=-200, endmsec=1200, win.ini,
win.end, exclude = NULL, elec.coord=NULL, projection="orthographic",
palette.col="jet", palette.steps=10, return.coord = FALSE, zlim=NULL,
interpolation = "cubicspline", extrap = TRUE, interp.points = 500,
return.notfound=FALSE, mask = TRUE, contour=TRUE, x.rev=FALSE,
draw.elec.pos=TRUE, draw.nose=FALSE, draw.elec.lab=TRUE,
elec.lab.adj=c(0.5, NA), head.col="black", head.lwd=1, ...)
"orthographic"
and "equalarea"
.
"jet"
or "heat"
. Otherwise a customized palette can be created.
A palette will be built as an interpolation trough the vector of colors provided.
TRUE
, the function doesn't create a topoplot, but returns a data frame containing all the built-in electrode coordinates.
NULL
, then the limits are automatically computed.
akima
are available: "linear"
and "cubicspline"
.
"linear"
.
TRUE
, the function doesn't create a topoplot, but returns a vector with the electrode names in erpobj
not contained in the supplied list of electrodes.
text
).
image
.
zlim
of the plot. The second item of the list is a vector indicating the palette created by the function (palette
). This last vector with palette colors can be used by the topoplot.palette
function.
if(require(akima)){
data(ERPsets)
word=grandaverage("Exp1_word_subj", 1:20, erplist=ERPsets)
# check if some electrodes are not present in the list
# and create an object with these electrode names.
notfound=topoplot(word, return.notfound=TRUE)
#make a topoplot excluding not found electrode
topoplot(word, startmsec=-200, endmsec=1500, win.ini=400,
win.end=600, exclude=notfound)
}
Run the code above in your browser using DataLab