base and numbers. The external variable is specified as a vector (of length equal to numbers) in the argument external. A scalp plot of the results is returned.
scalp.cor(base, numbers, external = NULL, alpha = 0.05,
method = c("pearson", "kendall", "spearman"), sig = NULL,
erplist = NULL, smo = NULL, layout = 1, ylims = "auto", yrev = TRUE, startmsec = -200, endmsec = 1200, lwd = c(1, 1), lty = c(1, 1), col = "blue", legend = TRUE, legend.lab = "default", t.axis=seq(-100,endmsec,200), scalp.array=NULL)numbers
"pearson", "kendall", "spearman".
NULL, then a series of correlations is computed. If an appropriate object is specified (i.e. an object returned by scalp.cor or erp.cor) then the results are retrieved by this object and the function simply plots the results.
smooth.spline). Default is NULL and no smoothing is applied.
Details).
TRUE, the y-axis is plotted with the negative values upward.
categ
categ
TRUE, a legend with object names is drawn in the top-right corner of the array.
categ argument.
Details.
erp.cor or scalp.cor, 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.cor, ~~~
## Not run:
# data(ERPsets)
#
# #generate an hypothetic external variables
# RT=rnorm(20, mean=500, sd=200)
#
# scalp.cor("Exp1_word_subj", 1:20, external = RT, layout=1,
# erplist=ERPsets, ylim=10, legend=TRUE)
# ## End(Not run)
Run the code above in your browser using DataLab