Description Usage Arguments Details Value See Also Examples

This function plots an instance before and/or after its DB-CSP projection.

1 2 3 |

`x` |
object of class |

`class` |
integer, which of both classes to access (1 or 2), by default |

`index` |
an integer, representing which instance of the class to plot, by default |

`vectors` |
an integer or vector of integers, representing the vectors to plot after the projection, by default all the vectors used in the projection are plotted |

`pairs` |
logical, if TRUE the pairs of the indicated vectors are also shown, by default |

`before` |
logical, if TRUE the original signals are plotted, by default |

`after` |
logical, if TRUE the signals after projection are plotted, by default |

`legend` |
logical, if true the legend of the transformed signals is shown, by default |

`...` |
optional arguments inherited from the generic |

It plots an instance before and/or after being projected with the DB-CSP filter.
Vectors values must lie between 1 and 2*q, being q the number of dimensions used to perform the DB-CSP
algorithm when creating the `dbcsp`

object. The following should be
taken into account when plotting:

The first q values (1,...,q) are indicated as a1...aq, and are plotted with solid lines.

The last q values (q+1,...,2*q) are indicated as b1...bq, and are plotted with dashed lines.

If `pairs=TRUE`

, it is recommended that `vectors<q`

for better understanding,
since their pairs are plotted as well. In case that `vectors>q`

, it should be noted
that the values are displayed from b1 to bq, where b1 and bq represent q+1 vector and 2*q vector,
respectively. The paired vectors (a1-b1, a2-b2, ...) are plotted with the same color, but different line type.

For example if `q=15`

and `plot(object, vectors=16, pairs=FALSE)`

, b1 (16-q=1) vector is
shown.

Displays a plot of the selected instance before and/or after the DB-CSP filter projection. The vectors shown after the projection are differentiated by the q first and q last vectors, since the former maximize the variance of one class and minimize the variance of the other, while the latter do the opposite.

`dbcsp`

, `print`

, `summary`

, `train`

, `selectQ`

, `predict`

, `boxplot`

1 2 3 4 5 6 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.