Your Advanced 3D Brain Visualization

A fast, interactive cross-platform, and easy to share 'WebGL'-based 3D brain viewer that visualizes 'FreeSurfer' and/or 'AFNI/SUMA' surfaces. The viewer widget can be either standalone or embedded into 'R-shiny' applications. The standalone version only require a web browser with 'WebGL2' support (for example, 'Chrome', 'Firefox', 'Safari'), and can be inserted into any websites. The 'R-shiny' support allows the 3D viewer to be dynamically generated from reactive user inputs. Please check the publication by Wang, Magnotti, Zhang, and Beauchamp (2023, ) for electrode localization. This viewer has been fully adopted by 'RAVE' < https://openwetware.org/wiki/RAVE>, an interactive toolbox to analyze 'iEEG' data by Magnotti, Wang, and Beauchamp (2020, ). Please check 'citation("threeBrain")' for details.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("threeBrain")

1.2.0 by Zhengjia Wang, 2 years ago


https://dipterix.org/threeBrain/, https://github.com/dipterix/threeBrain


Report a bug at https://github.com/dipterix/threeBrain/issues


Browse source code at https://github.com/cran/threeBrain


Authors: Zhengjia Wang [aut, cre, cph] , John Magnotti [ctb, res] , Xiang Zhang [ctb, res] , Brian Metzger [res] , Elizabeth Nesbitt [res] , Meng Li [ths] , Michael Beauchamp [ths, ctb, dtc]


Documentation:   PDF Manual  


MPL-2.0 license


Imports utils, grDevices, graphics, dipsaus, xml2, servr, png, knitr, shiny, digest, freesurferformats, jsonlite, stringr, htmlwidgets, R6, gifti, oro.nifti

Suggests rmarkdown, DT, ravetools, htmltools


Imported by ravecore.

Suggested by ravepipeline.


See at CRAN