Description Usage Arguments Value Author(s) References See Also Examples
This function was designed to do charts of EEG data. Basically, the data (for each channel, class and recording) is divided by windows and a statistical function (as the mean or variance) is applied for all signals in each window. Then, the sequence of values obtained for each window is plotted.
1 2 3 |
data |
is the data frame containing the EEG signals. The data frame must be organized as follows: each column represents a different channel. Thus, the signals collected by each channel are represented in each row. To identify the class and recording represented by each line, the vectors |
classes.Id |
is a vector with length equal to the number of rows in |
rec.Id |
is a vector with length equal to the number of rows in |
which.classes |
a vector representing which classes will be plotted. For example, if |
which.rec |
a list representing which recordings shall be plotted for each class. For example, if |
which.channels |
a vector representing which channels shall be plotted. For example, if |
win |
the window size. |
stat |
is the statistic applied on the signals of each window. If |
power |
a transformation of the data can be performed before using the chosen statistic. In this case the transformation will be |
abs |
a transformation of the data can be used before using the chosen statistic, in this case, if |
log |
a transformation of the data can be used before using the chosen statistic, in this case, if |
complete |
if |
mintomax |
if |
data |
Is a data frame with all the statistics computed by the function for each window. Arranged in the same way as the input parameter |
classes.Id |
Is a vector with the same meaning as the input parameter |
rec.Id |
Is a vector with the same meaning as the input parameter |
Murilo Coutinho Silva (coutinho.stat@gmail.com), George Freitas von Borries
Brockwell, P.J., Davis, R.A. (2002) Introduction to Time Series and Forecasting. 2nd ed. Colorado: Springer. Cap. 4.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | library(eegAnalysis)
### Simulating a data set
sim<-randEEG()
### Plotting the sum of the signals in windows of size 10
plotwindows(sim$data, sim$classes.Id , sim$rec.Id , which.classes = "ALL", which.rec="ALL",
which.channels=c(1), win=10, stat="sum", power = 2, abs=FALSE,
log=FALSE,complete = FALSE, mintomax=FALSE)
### Plotting the sorted sum of the signals in windows of size 10
plotwindows(sim$data, sim$classes.Id , sim$rec.Id , which.classes = "ALL", which.rec="ALL",
which.channels=c(1), win=10, stat="sum", power = 2, abs=FALSE,
log=FALSE,complete = FALSE, mintomax=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.