View source: R/threeBrain-instance.R
rave_brain | R Documentation |
Create 3D visualization of the brain and visualize with modern web browsers
rave_brain(
subject,
surfaces = "pial",
overlays = "aparc.a2009s+aseg",
annotations = "label/aparc.a2009s",
...,
usetemplateifmissing = FALSE,
include_electrodes = TRUE
)
subject |
character, list, or |
surfaces |
one or more brain surface types from |
overlays |
volumes to overlay; default is |
annotations |
surface annotation or curvature data to load;
default is |
... |
ignored, reserved for legacy code |
usetemplateifmissing |
whether to use template brain when the subject
brain files are missing. If set to true, then a template (usually 'N27')
brain will be displayed as an alternative solution, and electrodes will be
rendered according to their |
include_electrodes |
whether to include electrode in the model; default is true |
A 'threeBrain'
instance if brain is found or
usetemplateifmissing
is set to true; otherwise returns NULL
# Please make sure DemoSubject is correctly installed
# The subject is ~1GB from Github
if(interactive()){
brain <- rave_brain("demo/DemoSubject")
if( !is.null(brain) ) { brain$plot() }
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.