'Creating a 10-20 Montage (EEG, fNIRS) Figure using R

I have been browsing the interwebs trying to find a reproducible way to create 10-20 Montage Figures (which you regularly see in articles) from EEG and fNIRS publications in R. An example is

1020-wiki - merged

Many of the packages that create nice figures are MRI based (brainconn, threeBrain) but these don't seem to allow the labelling of electrodes according to the 10-20 space.

If anyone has any advice or input it would be greatly appreciated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source