Charles Novaes de Santana
2015-Oct-19 12:41 UTC
[R] Plotting EEG signals as a "head" using R
Dear all, I have .csv file with the evoked potential of different electrodes of a human subject and I would like to plot a head figure representing the evoked potentials. My csv file has 1000 lines (from 1ms to 1000 ms) and 12 columns (each column for an electrode I am studying). Do you know a way to use this csv files to plot a head representing the evoked potential at specific points (like P300, N100, etc) using R? (I know a way to plot it in Matlab using ERPLAB and EEGLAB, but Matlab is not an option in our Lab). The idea is to have a head figure similar to the one in the following picture: http://d2avczb82rh8fa.cloudfront.net/content/jn/113/3/740/F3.large.jpg Thanks for any help, sorry for not having a reproducible example. Best, Charles -- Um ax?! :) -- Charles Novaes de Santana, PhD http://www.imedea.uib-csic.es/~charles [[alternative HTML version deleted]]
Hi, the eegkit package (https://cran.r-project.org/web/packages/eegkit/index.html) might help you if you happen to work with a standard electrode cap. Best, Denes On 10/19/2015 02:41 PM, Charles Novaes de Santana wrote:> Dear all, > > I have .csv file with the evoked potential of different electrodes of a > human subject and I would like to plot a head figure representing the > evoked potentials. My csv file has 1000 lines (from 1ms to 1000 ms) and 12 > columns (each column for an electrode I am studying). > > Do you know a way to use this csv files to plot a head representing the > evoked potential at specific points (like P300, N100, etc) using R? (I know > a way to plot it in Matlab using ERPLAB and EEGLAB, but Matlab is not an > option in our Lab). > > The idea is to have a head figure similar to the one in the following > picture: > http://d2avczb82rh8fa.cloudfront.net/content/jn/113/3/740/F3.large.jpg > > Thanks for any help, sorry for not having a reproducible example. > > Best, > > Charles > >
Charles Novaes de Santana
2015-Oct-19 20:27 UTC
[R] Plotting EEG signals as a "head" using R
Thanks a lot, D?nes!! This library is very good! I can plot the head even in 3D using the command "eegspace(space,voltage)", in which "space" defines the position of the electrodes and voltage is the voltage of my EEG signal :) Simple and elegant! :) Thanks! Best, Charles On 19 October 2015 at 15:10, D?nes T?th <toth.denes at ttk.mta.hu> wrote:> Hi, > > the eegkit package ( > https://cran.r-project.org/web/packages/eegkit/index.html) might help you > if you happen to work with a standard electrode cap. > > Best, > Denes > > > > On 10/19/2015 02:41 PM, Charles Novaes de Santana wrote: > >> Dear all, >> >> I have .csv file with the evoked potential of different electrodes of a >> human subject and I would like to plot a head figure representing the >> evoked potentials. My csv file has 1000 lines (from 1ms to 1000 ms) and 12 >> columns (each column for an electrode I am studying). >> >> Do you know a way to use this csv files to plot a head representing the >> evoked potential at specific points (like P300, N100, etc) using R? (I >> know >> a way to plot it in Matlab using ERPLAB and EEGLAB, but Matlab is not an >> option in our Lab). >> >> The idea is to have a head figure similar to the one in the following >> picture: >> http://d2avczb82rh8fa.cloudfront.net/content/jn/113/3/740/F3.large.jpg >> >> Thanks for any help, sorry for not having a reproducible example. >> >> Best, >> >> Charles >> >> >>-- Um ax?! :) -- Charles Novaes de Santana, PhD http://www.imedea.uib-csic.es/~charles [[alternative HTML version deleted]]