base1 and numbers1. The second is specified by base2 and numbers2. A scalp plot of the results is returned.
scalp.t(base1, base2, numbers1, numbers2 = NULL, paired = TRUE,
alpha = 0.05, sig = NULL, erplist1 = NULL, erplist2 = erplist1,
smo = NULL, layout = 1, ylims = "auto", yrev = TRUE,
startmsec = -200, endmsec = 1200, lwd = c(1, 1), lty = c(1, 1),
color.list = c("blue", "red"), legend = F, legend.lab = "default",
t.axis = seq(-100, endmsec, 200), scalp.array=NULL)NULL, then a series of t-test is computed. If an appropriate object is specified (i.e. an object returned by erp.t or scalp.t)
then the results are retrieved by this object and the function simply plots the results.
base1 and numbers1.
base2 and numbers2.
smooth.spline). Default is NULL and no smoothing is applied.
Details).
TRUE, the y-axis is plotted with negative values upward.
categ
categ
categ
TRUE, a legend with object names is drawn in the top-right corner of the array.
categ.
Details.
color.list. Timepoints in which the t-test is significant are highlighted by grey bars. The function also returns an object with the results of the t-tests. This object can be used for future plots with erp.t or scalp.t, by specifying it as the argument sig.
scalp.array. The names specified will be plotted from top to bottom and from left to right. If "blank" is specified an empty panel will be plotted. If "xaxis" is specified a x axis indicating time will be plotted. If "yaxis" is specified a y axis indicating voltage will be plotted.
erp, erp.t
## Not run:
# data(ERPsets)
#
# scalp.t("Exp1_word_subj", "Exp1_nonword_subj", 1:20, 1:20, smo=0,
# layout=1, ylims=10, startmsec=-200, endmsec=1500,
# color.list=c("blue", "red"), erplist1=ERPsets, erplist2=ERPsets)
# ## End(Not run)
Run the code above in your browser using DataLab