add_glassbrain | R Documentation |
Adds a translucent brain on top of a ggseg3d plot to create a point of reference, particularly important for sub-cortical plots.
add_glassbrain(
p,
hemisphere = c("left", "right"),
colour = "#cecece",
opacity = 0.3
)
p |
plotly object |
hemisphere |
string. hemisphere to plot ("left" or "right") |
colour |
string. colour to give the glass brain |
opacity |
numeric. transparency of the glass brain (0-1 float) |
plotly object with glass brain tri-surface mesh
library(dplyr)
ggseg3d(atlas="aseg_3d") %>%
add_glassbrain("left")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.